Package com.google.flatbuffers
Class Struct
- java.lang.Object
-
- com.google.flatbuffers.Struct
-
public class Struct extends Object
All structs in the generated code derive from this class, and add their own accessors.
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBufferbbThe underlying ByteBuffer to hold the data of the com.google.flatbuffers.Struct.protected intbb_posUsed to hold the position of the `bb` buffer.
-
Constructor Summary
Constructors Constructor Description Struct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void__reset()Resets internal state with a nullByteBufferand a zero position.protected void__reset(int _i, ByteBuffer _bb)Re-init the internal state with an external bufferByteBufferand an offset within.
-
-
-
Field Detail
-
bb_pos
protected int bb_pos
Used to hold the position of the `bb` buffer.
-
bb
protected ByteBuffer bb
The underlying ByteBuffer to hold the data of the com.google.flatbuffers.Struct.
-
-
Method Detail
-
__reset
protected void __reset(int _i, ByteBuffer _bb)Re-init the internal state with an external bufferByteBufferand an offset within.This method exists primarily to allow recycling com.google.flatbuffers.Table instances without risking memory leaks due to
ByteBufferreferences.
-
__reset
public void __reset()
Resets internal state with a nullByteBufferand a zero position.This method exists primarily to allow recycling com.google.flatbuffers.Struct instances without risking memory leaks due to
ByteBufferreferences. The instance will be unusable until it is assigned again to aByteBuffer.
-
-