A specialized ByteBuf that stores data in native endian.
Class ByteBufNativeEndian from \ ByteBuf( )
This ByteBuf always stores data in the host machine's native endian.
Attempting to change it has no effect, thus, to prevent unexpected behavior, calling setEndian() raises an error.
Note: This ByteBuf should be slightly faster then the others because of zero conversion and endian checking overhead. (However, this will only be noticed if used directly from C++)
Properties inherited from class ByteBuf | |
BIG_ENDIAN | |
LITTLE_ENDIAN | |
NATIVE_ENDIAN | |
REVERSE_ENDIAN |