public class DataBufferStruct
extends com.google.flatbuffers.Struct
| Constructor and Description |
|---|
DataBufferStruct(ByteBuffer byteBuffer,
int offset) |
DataBufferStruct(org.nd4j.linalg.api.buffer.DataBuffer dataBuffer) |
| Modifier and Type | Method and Description |
|---|---|
DataBufferStruct |
__assign(int _i,
ByteBuffer _bb) |
void |
__init(int _i,
ByteBuffer _bb) |
static int |
createDataBufferStruct(com.google.flatbuffers.FlatBufferBuilder bufferBuilder,
org.nd4j.linalg.api.buffer.DataBuffer create)
Create a data buffer struct within
the passed in
FlatBufferBuilder |
static org.nd4j.linalg.api.buffer.DataBuffer |
createFromByteBuffer(ByteBuffer bb,
int bb_pos,
org.nd4j.linalg.api.buffer.DataType type,
int length)
Create a
DataBuffer from a
byte buffer. |
public DataBufferStruct(org.nd4j.linalg.api.buffer.DataBuffer dataBuffer)
public DataBufferStruct(ByteBuffer byteBuffer, int offset)
public void __init(int _i,
ByteBuffer _bb)
public DataBufferStruct __assign(int _i, ByteBuffer _bb)
public static org.nd4j.linalg.api.buffer.DataBuffer createFromByteBuffer(ByteBuffer bb, int bb_pos, org.nd4j.linalg.api.buffer.DataType type, int length)
DataBuffer from a
byte buffer. This is meant to be used with flatbuffersbb - the flat buffers bufferbb_pos - the position to start fromtype - the type of buffer to createlength - the length of the buffer to createpublic static int createDataBufferStruct(com.google.flatbuffers.FlatBufferBuilder bufferBuilder,
org.nd4j.linalg.api.buffer.DataBuffer create)
FlatBufferBuilderbufferBuilder - the existing flatbuffer
to use to serialize the DataBuffercreate - the databuffer to serializeCopyright © 2019. All rights reserved.