Class Struct


  • public class Struct
    extends java.lang.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 java.nio.ByteBuffer bb
      The underlying ByteBuffer to hold the data of the Struct.
      protected int bb_pos
      Used 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 null ByteBuffer and a zero position.
      protected void __reset​(int _i, java.nio.ByteBuffer _bb)
      Re-init the internal state with an external buffer ByteBuffer and an offset within.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bb_pos

        protected int bb_pos
        Used to hold the position of the `bb` buffer.
      • bb

        protected java.nio.ByteBuffer bb
        The underlying ByteBuffer to hold the data of the Struct.
    • Constructor Detail

      • Struct

        public Struct()
    • Method Detail

      • __reset

        protected void __reset​(int _i,
                               java.nio.ByteBuffer _bb)
        Re-init the internal state with an external buffer ByteBuffer and an offset within. This method exists primarily to allow recycling Table instances without risking memory leaks due to ByteBuffer references.
      • __reset

        public void __reset()
        Resets internal state with a null ByteBuffer and a zero position. This method exists primarily to allow recycling Struct instances without risking memory leaks due to ByteBuffer references. The instance will be unusable until it is assigned again to a ByteBuffer.
        Parameters:
        struct - the instance to reset to initial state