Package org.apache.arrow.flatbuf
Class Buffer
java.lang.Object
com.google.flatbuffers.Struct
org.apache.arrow.flatbuf.Buffer
public final class Buffer
extends com.google.flatbuffers.Struct
----------------------------------------------------------------------
A Buffer represents a single contiguous memory segment
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.google.flatbuffers.Struct
bb, bb_pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__assign
(int _i, ByteBuffer _bb) void
__init
(int _i, ByteBuffer _bb) static int
createBuffer
(com.google.flatbuffers.FlatBufferBuilder builder, long offset, long length) long
length()
The absolute length (in bytes) of the memory buffer.long
offset()
The relative offset into the shared memory page where the bytes for this buffer startsMethods inherited from class com.google.flatbuffers.Struct
__reset, __reset
-
Constructor Details
-
Buffer
public Buffer()
-
-
Method Details
-
__init
-
__assign
-
offset
public long offset()The relative offset into the shared memory page where the bytes for this buffer starts -
length
public long length()The absolute length (in bytes) of the memory buffer. The memory is found from offset (inclusive) to offset + length (non-inclusive). When building messages using the encapsulated IPC message, padding bytes may be written after a buffer, but such padding bytes do not need to be accounted for in the size here. -
createBuffer
public static int createBuffer(com.google.flatbuffers.FlatBufferBuilder builder, long offset, long length)
-