public static final class FlatBufferBuilder.HeapByteBufferFactory extends FlatBufferBuilder.ByteBufferFactory
| Modifier and Type | Field and Description |
|---|---|
static FlatBufferBuilder.HeapByteBufferFactory |
INSTANCE |
| Constructor and Description |
|---|
HeapByteBufferFactory() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
newByteBuffer(int capacity)
Create a `ByteBuffer` with a given capacity.
|
releaseByteBufferpublic static final FlatBufferBuilder.HeapByteBufferFactory INSTANCE
public ByteBuffer newByteBuffer(int capacity)
FlatBufferBuilder.ByteBufferFactorynewByteBuffer in class FlatBufferBuilder.ByteBufferFactorycapacity - The size of the `ByteBuffer` to allocate.Copyright © 2020. All rights reserved.