Skip to content

Commit

Permalink
Respect Buffer order in MemUtilUnsafe.put/get methods
Browse files Browse the repository at this point in the history
This is potentially a breaking change when
people rely on the previous behaviour of
MemUtilUnsafe using the platform's native
endianness for wrongly configured NIO Buffer
instances, e.g. using the Buffer's default
BIG_ENDIAN byte order on a LITTLE_ENDIAN
native order.

However, this behaviour deviated from and was
inconsistent with the non-unsafe (-Djoml.nounsafe)
behaviour, which used the default
ByteBuffer/FloatBuffer/DoubleBuffer methods
with their order-preserving behaviour.
  • Loading branch information
httpdigest committed Nov 7, 2022
1 parent 9a172b1 commit ff3a0f5
Showing 1 changed file with 620 additions and 160 deletions.
Loading

0 comments on commit ff3a0f5

Please sign in to comment.