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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields inherited from class com.google.flatbuffers.Struct

    bb, bb_pos
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    __assign(int _i, ByteBuffer _bb)
     
    void
    __init(int _i, ByteBuffer _bb)
     
    static int
    createBuffer(com.google.flatbuffers.FlatBufferBuilder builder, long offset, long length)
     
    long
    The absolute length (in bytes) of the memory buffer.
    long
    The relative offset into the shared memory page where the bytes for this buffer starts

    Methods inherited from class com.google.flatbuffers.Struct

    __reset, __reset

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Buffer

      public Buffer()
  • Method Details

    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Buffer __assign(int _i, ByteBuffer _bb)
    • 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)