Package io.objectbox.flatbuffers
Class Struct
java.lang.Object
io.objectbox.flatbuffers.Struct
All structs in the generated code derive from this class, and add their own accessors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteBufferThe underlying ByteBuffer to hold the data of the Struct.protected intUsed to hold the position of the `bb` buffer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid__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 Details
-
bb_pos
protected int bb_posUsed to hold the position of the `bb` buffer. -
bb
The underlying ByteBuffer to hold the data of the Struct.
-
-
Constructor Details
-
Struct
public Struct()
-
-
Method Details
-
__reset
Re-init the internal state with an external bufferByteBufferand an offset within. This method exists primarily to allow recycling Table instances without risking memory leaks due toByteBufferreferences. -
__reset
public void __reset()Resets internal state with a nullByteBufferand a zero position. This method exists primarily to allow recycling Struct instances without risking memory leaks due toByteBufferreferences. The instance will be unusable until it is assigned again to aByteBuffer.- Parameters:
struct- the instance to reset to initial state
-