You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use readIntLe/writeIntLe etc. if you want little-endian ints. And you can write your own abstraction to toggle between endianness if that’s really what you need.
Could you say more about your use case? It’s been my experience that usually endianness doesn’t vary at the callsite.
The way it works in java.nio.Buffer is annoying because it puts state on the Buffer instance.
We saw bugs around helper methods that flipped the endianness but didn’t put it back, and those bugs are difficult to debug if they’re sometimes safe when the initial endianness is what they’re changing it to.
As titled, I'd like an option as
Buffer::order
where I can set the endianess at the library levelThe text was updated successfully, but these errors were encountered: