public abstract class AbstractByteBufferStore extends DumpableObject
ByteBuffer
s.Constructor and Description |
---|
AbstractByteBufferStore() |
AbstractByteBufferStore(java.nio.ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
addBuffer(java.nio.ByteBuffer buffer) |
protected java.nio.ByteBuffer |
allocateBuffer(BinaryDataType dataType) |
protected java.nio.ByteBuffer |
allocateBuffer(BinaryDataType dataType,
int count) |
protected java.nio.ByteBuffer |
allocateBuffer(int bytes) |
protected java.nio.DoubleBuffer |
asDoubleBuffer(java.nio.ByteBuffer bb)
Get buffer as
DoubleBuffer having the same ByteOrder as the store itself. |
protected java.nio.FloatBuffer |
asFloatBuffer(java.nio.ByteBuffer bb)
Get buffer as
FloatBuffer having the same ByteOrder as the store itself. |
protected java.nio.IntBuffer |
asIntBuffer(java.nio.ByteBuffer bb)
Get buffer as
IntBuffer having the same ByteOrder as the store itself. |
protected java.nio.DoubleBuffer |
createDoubleBuffer(int numDoubles) |
protected java.nio.FloatBuffer |
createFloatBuffer(int numFloats) |
protected java.nio.IntBuffer |
createIntBuffer(int numInts) |
protected java.nio.ByteBuffer |
createWrappedByteBuffer(java.nio.ByteBuffer baseBuffer,
int offset,
int count) |
protected java.nio.IntBuffer |
createWrappedIntBuffer(java.nio.ByteBuffer baseBuffer,
int offset,
int count) |
java.util.List<java.nio.ByteBuffer> |
getBufferList() |
java.nio.ByteOrder |
getByteOrder() |
long |
getSize() |
protected java.lang.String |
getString(java.nio.ByteBuffer buffer)
Parse buffer byte by byte until \0 is detected or end of data in buffer.
|
void |
setByteOrder(java.nio.ByteOrder byteOrder) |
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public AbstractByteBufferStore()
public AbstractByteBufferStore(java.nio.ByteOrder byteOrder)
public final java.util.List<java.nio.ByteBuffer> getBufferList()
public final long getSize()
public final java.nio.ByteOrder getByteOrder()
public final void setByteOrder(java.nio.ByteOrder byteOrder)
protected final java.nio.ByteBuffer allocateBuffer(BinaryDataType dataType)
protected final java.nio.ByteBuffer allocateBuffer(BinaryDataType dataType, int count)
protected final java.nio.ByteBuffer allocateBuffer(int bytes)
protected final java.nio.ByteBuffer addBuffer(java.nio.ByteBuffer buffer)
protected final java.nio.IntBuffer createIntBuffer(int numInts)
protected final java.nio.FloatBuffer createFloatBuffer(int numFloats)
protected final java.nio.DoubleBuffer createDoubleBuffer(int numDoubles)
protected final java.nio.IntBuffer createWrappedIntBuffer(java.nio.ByteBuffer baseBuffer, int offset, int count)
protected final java.nio.ByteBuffer createWrappedByteBuffer(java.nio.ByteBuffer baseBuffer, int offset, int count)
protected final java.nio.IntBuffer asIntBuffer(java.nio.ByteBuffer bb)
IntBuffer
having the same ByteOrder
as the store itself.protected final java.nio.FloatBuffer asFloatBuffer(java.nio.ByteBuffer bb)
FloatBuffer
having the same ByteOrder
as the store itself.protected final java.nio.DoubleBuffer asDoubleBuffer(java.nio.ByteBuffer bb)
DoubleBuffer
having the same ByteOrder
as the store itself.protected final java.lang.String getString(java.nio.ByteBuffer buffer)
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.