Package org.nd4j.arrow
Class DataBufferStruct
- java.lang.Object
-
- com.google.flatbuffers.Struct
-
- org.nd4j.arrow.DataBufferStruct
-
public class DataBufferStruct extends com.google.flatbuffers.Struct
-
-
Constructor Summary
Constructors Constructor Description DataBufferStruct(ByteBuffer byteBuffer, int offset)DataBufferStruct(DataBuffer dataBuffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataBufferStruct__assign(int _i, ByteBuffer _bb)void__init(int _i, ByteBuffer _bb)static intcreateDataBufferStruct(com.google.flatbuffers.FlatBufferBuilder bufferBuilder, DataBuffer create)Create a data buffer struct within the passed inFlatBufferBuilderstatic DataBuffercreateFromByteBuffer(ByteBuffer bb, int bb_pos, DataType type, int length)Create aDataBufferfrom a byte buffer.
-
-
-
Constructor Detail
-
DataBufferStruct
public DataBufferStruct(DataBuffer dataBuffer)
-
DataBufferStruct
public DataBufferStruct(ByteBuffer byteBuffer, int offset)
-
-
Method Detail
-
__init
public void __init(int _i, ByteBuffer _bb)
-
__assign
public DataBufferStruct __assign(int _i, ByteBuffer _bb)
-
createFromByteBuffer
public static DataBuffer createFromByteBuffer(ByteBuffer bb, int bb_pos, DataType type, int length)
Create aDataBufferfrom a byte buffer. This is meant to be used with flatbuffers- Parameters:
bb- the flat buffers bufferbb_pos- the position to start fromtype- the type of buffer to createlength- 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 inFlatBufferBuilder- Parameters:
bufferBuilder- the existing flatbuffer to use to serialize theDataBuffercreate- the databuffer to serialize- Returns:
- an int representing the offset of the buffer
-
-