Class DataBufferStruct


  • public class DataBufferStruct
    extends com.google.flatbuffers.Struct
    • Constructor Detail

      • DataBufferStruct

        public DataBufferStruct​(DataBuffer dataBuffer)
      • DataBufferStruct

        public DataBufferStruct​(ByteBuffer byteBuffer,
                                int offset)
    • Method Detail

      • __init

        public void __init​(int _i,
                           ByteBuffer _bb)
      • createFromByteBuffer

        public static DataBuffer createFromByteBuffer​(ByteBuffer bb,
                                                      int bb_pos,
                                                      DataType type,
                                                      int length)
        Create a DataBuffer from a byte buffer. This is meant to be used with flatbuffers
        Parameters:
        bb - the flat buffers buffer
        bb_pos - the position to start from
        type - the type of buffer to create
        length - the length of the buffer to create
        Returns:
        the created databuffer
      • createDataBufferStruct

        public static int createDataBufferStruct​(com.google.flatbuffers.FlatBufferBuilder bufferBuilder,
                                                 DataBuffer create)
        Create a data buffer struct within the passed in FlatBufferBuilder
        Parameters:
        bufferBuilder - the existing flatbuffer to use to serialize the DataBuffer
        create - the databuffer to serialize
        Returns:
        an int representing the offset of the buffer