Class IOURingRSRCRegister.Buffer

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

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

    • Buffer

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

    • nr

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

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

      public long data()
      Returns:
      the value of the data field.
    • tags

      public long tags()
      Returns:
      the value of the tags field.
    • nr

      public IOURingRSRCRegister.Buffer nr(int value)
      Sets the specified value to the nr field.
    • flags

      public IOURingRSRCRegister.Buffer flags(int value)
      Sets the specified value to the flags field.
    • data

      public IOURingRSRCRegister.Buffer data(long value)
      Sets the specified value to the data field.
    • tags

      public IOURingRSRCRegister.Buffer tags(long value)
      Sets the specified value to the tags field.