Class DATA_BLOB.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<DATA_BLOB>, NativeResource, Pointer
Enclosing class:
DATA_BLOB

public static class DATA_BLOB.Buffer extends StructBuffer<DATA_BLOB,DATA_BLOB.Buffer> implements NativeResource
An array of DATA_BLOB structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new DATA_BLOB.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by DATA_BLOB.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • cbData

      public int cbData()
      Returns:
      the value of the cbData field.
    • pbData

      public ByteBuffer pbData()
      Returns:
      a ByteBuffer view of the data pointed to by the pbData field.
    • pbData

      public DATA_BLOB.Buffer pbData(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pbData field.