apache / datasketches-memory

High performance native memory access for Java.
https://datasketches.apache.org
Apache License 2.0
118 stars 27 forks source link

User specified ByteOrder ignored in method Memory::wrap(byte[], int, int, ByteOrder) #195

Closed leerho closed 1 month ago

leerho commented 1 month ago

The user specified ByteOrder was ignored and overwritten by ByteOrder.nativeOrder().

Although ByteOrder is irrelevant for byte array operations, this method sets the byte order for subsequent method calls. If the user specified Big Endian order in this method and then followed it with getLong(..), for example, the returned ByteOrder would be Little Endian.

This is fixed in version 3.0.0.

leerho commented 1 month ago

Version 3.0.0 is now released. This issue is closed.