RFR: 8292937: Improve performance of some read operations of RandomAccessFile [v2]
Roger Riggs
rriggs at openjdk.org
Fri Aug 26 18:52:01 UTC 2022
On Fri, 26 Aug 2022 17:02:36 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
>> src/java.base/share/native/libjava/io_util.c line 82:
>>
>>> 80: ((*(buf + 1) & 0xFF) << 16) +
>>> 81: ((*(buf + 2) & 0xFF) << 8) +
>>> 82: ((*(buf + 3) & 0xFF));
>>
>> What if the native byte order is little-endian?
>
> I don't know, sorry
The spec and implementation for RandomAccessFile is big-endian *only*. (As is all of the file and networking stream support).
-------------
PR: https://git.openjdk.org/jdk/pull/10031
More information about the core-libs-dev
mailing list