Maven module :un.api : api-common :
Class :
un.api.number.NumberEncoding
Extends/Implements : -
Subclasses : -
Variables :
LITTLE_ENDIAN,
BIG_ENDIAN
Functions :
readBoolean,
readBoolean,
readByte,
readByte,
readUByte,
readUByte,
readShort,
readUShort,
readInt24,
readUInt24,
readInt,
readUInt,
readLong,
readFloat,
readDouble,
writeByte,
writeUByte,
writeChar,
writeShort,
writeUShort,
writeInt24,
writeUInt24,
writeInt,
writeUInt,
writeLong,
writeFloat,
writeDouble
public LittleEndian
LITTLE_ENDIAN
public BigEndian
BIG_ENDIAN
boolean
readBoolean (int b)
boolean
readBoolean (byte[] buffer, int offset)
byte
readByte (int b)
byte
readByte (byte[] buffer, int offset)
int
readUByte (int b)
int
readUByte (byte[] buffer, int offset)
short
readShort (byte[] buffer, int offset)
int
readUShort (byte[] buffer, int offset)
int
readInt24 (byte[] buffer, int offset)
int
readUInt24 (byte[] buffer, int offset)
int
readInt (byte[] buffer, int offset)
long
readUInt (byte[] buffer, int offset)
long
readLong (byte[] buffer, int offset)
float
readFloat (byte[] buffer, int offset)
double
readDouble (byte[] buffer, int offset)
void
writeByte (byte value, byte[] buffer, int offset)
void
writeUByte (int value, byte[] buffer, int offset)
void
writeChar (char value, byte[] buffer, int offset)
void
writeShort (short value, byte[] buffer, int offset)
void
writeUShort (int value, byte[] buffer, int offset)
void
writeInt24 (int value, byte[] buffer, int offset)
void
writeUInt24 (int value, byte[] buffer, int offset)
void
writeInt (int value, byte[] buffer, int offset)
void
writeUInt (long value, byte[] buffer, int offset)
void
writeLong (long value, byte[] buffer, int offset)
void
writeFloat (float value, byte[] buffer, int offset)
void
writeDouble (double value, byte[] buffer, int offset)
This interface and implementation allow to read and write primitive types
from /to byte arrays.
author Johann Sorel