public static interface FlatBufferBuilder.ByteBufferFactory
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
newByteBuffer(int capacity)
Create a `ByteBuffer` with a given capacity.
|
default void |
releaseByteBuffer(ByteBuffer bb)
Release a ByteBuffer.
|
ByteBuffer newByteBuffer(int capacity)
capacity - The size of the `ByteBuffer` to allocate.default 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 © 2018. All rights reserved.