public abstract static class FlatBufferBuilder.ByteBufferFactory extends Object
| Constructor and Description |
|---|
ByteBufferFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract ByteBuffer |
newByteBuffer(int capacity)
Create a `ByteBuffer` with a given capacity.
|
void |
releaseByteBuffer(ByteBuffer bb)
Release a ByteBuffer.
|
public abstract ByteBuffer newByteBuffer(int capacity)
capacity - The size of the `ByteBuffer` to allocate.public void releaseByteBuffer(ByteBuffer bb)
FlatBufferBuilder
released any reference to it, so it is safe to dispose the buffer
or return it to a pool.
It is not guaranteed that the buffer has been created
with newByteBuffer(int).bb - the buffer to releaseCopyright © 2020. All rights reserved.