FlatBuffers
An open source project by FPL.
|
An implementation of the ByteBufferFactory interface that is used when one is not provided by the user. More...
An implementation of the ByteBufferFactory interface that is used when one is not provided by the user.
Allocate memory for a new byte-array backed ByteBuffer
array inside the JVM.
Public Member Functions | |
ByteBuffer | newByteBuffer (int capacity) |
Create a ByteBuffer with a given capacity. More... | |
Public Member Functions inherited from com.google.flatbuffers.FlatBufferBuilder.ByteBufferFactory | |
void | releaseByteBuffer (ByteBuffer bb) |
Release a ByteBuffer. More... | |
Static Public Attributes | |
static final HeapByteBufferFactory | INSTANCE = new HeapByteBufferFactory() |
|
inline |
Create a ByteBuffer
with a given capacity.
The returned ByteBuf must have a ByteOrder.LITTLE_ENDIAN ByteOrder.
capacity | The size of the ByteBuffer to allocate. |
ByteBuffer
that was allocated. Reimplemented from com.google.flatbuffers.FlatBufferBuilder.ByteBufferFactory.