public class Struct extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
bb
The underlying ByteBuffer to hold the data of the com.google.flatbuffers.Struct.
|
protected int |
bb_pos
Used to hold the position of the `bb` buffer.
|
| Constructor and Description |
|---|
Struct() |
| Modifier and Type | Method and Description |
|---|---|
void |
__reset()
Resets internal state with a null
ByteBuffer and a zero position. |
protected void |
__reset(int _i,
ByteBuffer _bb)
Re-init the internal state with an external buffer
ByteBuffer and an offset within. |
protected ByteBuffer bb
protected int bb_pos
public void __reset()
ByteBuffer and a zero position.
This method exists primarily to allow recycling com.google.flatbuffers.Struct instances without risking memory
leaks due to ByteBuffer references. The instance will be unusable until it is assigned
again to a ByteBuffer.
protected void __reset(int _i,
ByteBuffer _bb)
ByteBuffer and an offset within.
This method exists primarily to allow recycling com.google.flatbuffers.Table instances without risking memory leaks
due to ByteBuffer references.