How does java take care of endianness? In case if you are moving your application from a little endian to a big endian or vice versa.
How are the data members or properties of class affected?
How does java take care of endianness? In case if you are moving your
Share
If you are mapping a buffer of a larger type over a
ByteBufferthen you can specify the endianness using theByteOrdervalues. Older core libraries assume network order.From
ByteBuffer:and
ByteOrderprovides access to the native order for the platform you’re working on.Compare that to the older
DataInputwhich is not useful for interop with local native services: