Maven module :un.api : api-common :
Class :
un.api.buffer.Buffer
Extends/Implements : -
Subclasses : -
Variables :
LEFT_TO_RIGHT,
RIGHT_TO_LEFT
Functions :
getFactory,
getPrimitiveType,
getEncoding,
getPrimitiveCount,
isWritable,
copy,
copy,
cursor,
cursor,
cursorInt,
cursorFloat,
cursorDouble,
getBufferByteSize,
getBackEnd,
toByteArray,
toUByteArray,
toShortArray,
toUShortArray,
toInt24Array,
toUInt24Array,
toIntArray,
toUIntArray,
toLongArray,
toFloatArray,
toDoubleArray,
readByte,
readByte,
readByte,
readUByte,
readUByte,
readUByte,
readShort,
readShort,
readShort,
readUShort,
readUShort,
readUShort,
readInt24,
readInt24,
readInt24,
readUInt24,
readUInt24,
readUInt24,
readInt,
readInt,
readInt,
readUInt,
readUInt,
readUInt,
readLong,
readLong,
readLong,
readFloat,
readFloat,
readFloat,
readDouble,
readDouble,
readDouble,
writeByte,
writeByte,
writeByte,
writeUByte,
writeUByte,
writeUByte,
writeShort,
writeShort,
writeShort,
writeUShort,
writeUShort,
writeUShort,
writeInt24,
writeInt24,
writeInt24,
writeUInt24,
writeUInt24,
writeUInt24,
writeInt,
writeInt,
writeInt,
writeUInt,
writeUInt,
writeUInt,
writeLong,
writeLong,
writeLong,
writeFloat,
writeFloat,
writeFloat,
writeDouble,
writeDouble,
writeDouble
public int
LEFT_TO_RIGHT
public int
RIGHT_TO_LEFT
BufferFactory
getFactory ()
int
getPrimitiveType ()
NumberEncoding
getEncoding ()
long
getPrimitiveCount ()
boolean
isWritable ()
Buffer
copy ()
Buffer
copy (int primitive, NumberEncoding encoding)
DataCursor
cursor ()
DataCursor
cursor (int primitive, NumberEncoding encoding)
IntCursor
cursorInt ()
FloatCursor
cursorFloat ()
DoubleCursor
cursorDouble ()
long
getBufferByteSize ()
Object
getBackEnd ()
byte[]
toByteArray ()
int[]
toUByteArray ()
short[]
toShortArray ()
int[]
toUShortArray ()
int[]
toInt24Array ()
int[]
toUInt24Array ()
int[]
toIntArray ()
long[]
toUIntArray ()
long[]
toLongArray ()
float[]
toFloatArray ()
double[]
toDoubleArray ()
byte
readByte (long offset)
void
readByte (byte[] array, long offset)
void
readByte (byte[] array, int arrayOffset, int length, long offset)
int
readUByte (long offset)
void
readUByte (int[] array, long offset)
void
readUByte (int[] array, int arrayOffset, int length, long offset)
short
readShort (long offset)
void
readShort (short[] array, long offset)
void
readShort (short[] array, int arrayOffset, int length, long offset)
int
readUShort (long offset)
void
readUShort (int[] array, long offset)
void
readUShort (int[] array, int arrayOffset, int length, long offset)
int
readInt24 (long offset)
void
readInt24 (int[] array, long offset)
void
readInt24 (int[] array, int arrayOffset, int length, long offset)
int
readUInt24 (long offset)
void
readUInt24 (int[] array, long offset)
void
readUInt24 (int[] array, int arrayOffset, int length, long offset)
int
readInt (long offset)
void
readInt (int[] array, long offset)
void
readInt (int[] array, int arrayOffset, int length, long offset)
long
readUInt (long offset)
void
readUInt (long[] array, long offset)
void
readUInt (long[] array, int arrayOffset, int length, long offset)
long
readLong (long offset)
void
readLong (long[] array, long offset)
void
readLong (long[] array, int arrayOffset, int length, long offset)
float
readFloat (long offset)
void
readFloat (float[] array, long offset)
void
readFloat (float[] array, int arrayOffset, int length, long offset)
double
readDouble (long offset)
void
readDouble (double[] array, long offset)
void
readDouble (double[] array, int arrayOffset, int length, long offset)
void
writeByte (byte value, long offset)
void
writeByte (byte[] array, long offset)
void
writeByte (byte[] array, int arrayOffset, int length, long offset)
void
writeUByte (int value, long offset)
void
writeUByte (int[] array, long offset)
void
writeUByte (int[] array, int arrayOffset, int length, long offset)
void
writeShort (short value, long offset)
void
writeShort (short[] array, long offset)
void
writeShort (short[] array, int arrayOffset, int length, long offset)
void
writeUShort (int value, long offset)
void
writeUShort (int[] array, long offset)
void
writeUShort (int[] array, int arrayOffset, int length, long offset)
void
writeInt24 (int value, long offset)
void
writeInt24 (int[] array, long offset)
void
writeInt24 (int[] array, int arrayOffset, int length, long offset)
void
writeUInt24 (int value, long offset)
void
writeUInt24 (int[] array, long offset)
void
writeUInt24 (int[] array, int arrayOffset, int length, long offset)
void
writeInt (int value, long offset)
void
writeInt (int[] array, long offset)
void
writeInt (int[] array, int arrayOffset, int length, long offset)
void
writeUInt (long value, long offset)
void
writeUInt (long[] array, long offset)
void
writeUInt (long[] array, int arrayOffset, int length, long offset)
void
writeLong (long value, long offset)
void
writeLong (long[] array, long offset)
void
writeLong (long[] array, int arrayOffset, int length, long offset)
void
writeFloat (float value, long offset)
void
writeFloat (float[] array, long offset)
void
writeFloat (float[] array, int arrayOffset, int length, long offset)
void
writeDouble (double value, long offset)
void
writeDouble (double[] array, long offset)
void
writeDouble (double[] array, int arrayOffset, int length, long offset)
You should see a Buffer as a memory space of bytes which you can
explore, read and write freely.
Buffers can be more efficient for a give primitive type or may be more
optimized for reading or writing.
The most efficient primitive type is given by method : getPrimitiveType
author Johann Sorel