Class IOUringRegionDesc.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new IOUringRegionDesc.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 IOUringRegionDesc.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

    • user_addr

      public long user_addr()
      Returns:
      the value of the user_addr field.
    • size

      public long size()
      Returns:
      the value of the size field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • id

      public int id()
      Returns:
      the value of the id field.
    • mmap_offset

      public long mmap_offset()
      Returns:
      the value of the mmap_offset field.
    • user_addr

      public IOUringRegionDesc.Buffer user_addr(long value)
      Sets the specified value to the user_addr field.
    • size

      public IOUringRegionDesc.Buffer size(long value)
      Sets the specified value to the size field.
    • flags

      public IOUringRegionDesc.Buffer flags(int value)
      Sets the specified value to the flags field.
    • id

      public IOUringRegionDesc.Buffer id(int value)
      Sets the specified value to the id field.
    • mmap_offset

      public IOUringRegionDesc.Buffer mmap_offset(long value)
      Sets the specified value to the mmap_offset field.