public final class LongPacker extends java.lang.Object implements PrimitivePacker<java.lang.Long>
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
addToBuffer(java.nio.ByteBuffer byteBuffer,
int index,
java.lang.Long data)
This method should insert to byteBuffer's index.
|
java.nio.ByteBuffer |
addToBuffer(java.nio.ByteBuffer byteBuffer,
java.lang.Long data)
This method should put data to byteBuffer and update the position of buffer
|
java.lang.Long |
getFromBuffer(java.nio.ByteBuffer byteBuffer)
Read a value from buffer.
|
java.lang.Long |
getFromBuffer(java.nio.ByteBuffer byteBuffer,
int offset)
Read a value from offset.
|
static LongPacker |
getInstance() |
MessageType<java.lang.Long,java.lang.Long> |
getMessageType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
determineLength, isHeaderRequired, packToByteArray, packToByteBuffer, packToByteBuffer, readDataFromBuffer, unpackFromBuffer, unpackFromBuffer, wrapperForByteLength, writeDataToBuffer
unpackFromByteArray
public static LongPacker getInstance()
public MessageType<java.lang.Long,java.lang.Long> getMessageType()
getMessageType
in interface PrimitivePacker<java.lang.Long>
public java.nio.ByteBuffer addToBuffer(java.nio.ByteBuffer byteBuffer, java.lang.Long data)
PrimitivePacker
addToBuffer
in interface PrimitivePacker<java.lang.Long>
public java.nio.ByteBuffer addToBuffer(java.nio.ByteBuffer byteBuffer, int index, java.lang.Long data)
PrimitivePacker
addToBuffer
in interface PrimitivePacker<java.lang.Long>
public java.lang.Long getFromBuffer(java.nio.ByteBuffer byteBuffer, int offset)
PrimitivePacker
getFromBuffer
in interface PrimitivePacker<java.lang.Long>
public java.lang.Long getFromBuffer(java.nio.ByteBuffer byteBuffer)
PrimitivePacker
getFromBuffer
in interface PrimitivePacker<java.lang.Long>