diff --git a/core/.jvm/src/main/scala/io/bullet/borer/internal/Unsafe.scala b/core/.jvm/src/main/scala/io/bullet/borer/internal/Unsafe.scala index 74a0c8ad..4d3f81f0 100644 --- a/core/.jvm/src/main/scala/io/bullet/borer/internal/Unsafe.scala +++ b/core/.jvm/src/main/scala/io/bullet/borer/internal/Unsafe.scala @@ -290,7 +290,7 @@ object Unsafe: def setOctaByteBigEndian(byteArray: Array[Byte], ix: Int, value: Long): Unit = _setOctaByteBigEndian(byteArray, ix, JLong.reverseBytes(value)) - final class BigEndianByteArrayAccess extends UnsafeByteArrayAccess(ByteOrder.LITTLE_ENDIAN): + final class BigEndianByteArrayAccess extends UnsafeByteArrayAccess(ByteOrder.BIG_ENDIAN): def doubleByteBigEndian(byteArray: Array[Byte], ix: Int): Char = _doubleByteBigEndian(byteArray, ix) diff --git a/core/.native/src/main/scala/io/bullet/borer/internal/Unsafe.scala b/core/.native/src/main/scala/io/bullet/borer/internal/Unsafe.scala index b047b993..9fc45b00 100644 --- a/core/.native/src/main/scala/io/bullet/borer/internal/Unsafe.scala +++ b/core/.native/src/main/scala/io/bullet/borer/internal/Unsafe.scala @@ -253,7 +253,7 @@ object Unsafe: def setOctaByteBigEndian(byteArray: Array[Byte], ix: Int, value: Long): Unit = _setOctaByteBigEndian(byteArray, ix, JLong.reverseBytes(value)) - final class BigEndianByteArrayAccess extends UnsafeByteArrayAccess(ByteOrder.LITTLE_ENDIAN): + final class BigEndianByteArrayAccess extends UnsafeByteArrayAccess(ByteOrder.BIG_ENDIAN): def doubleByteBigEndian(byteArray: Array[Byte], ix: Int): Char = _doubleByteBigEndian(byteArray, ix)