Class IOURingSQ.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<IOURingSQ,IOURingSQ.Buffer>
org.lwjgl.system.linux.liburing.IOURingSQ.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<IOURingSQ>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
IOURingSQ

public static class IOURingSQ.Buffer extends org.lwjgl.system.StructBuffer<IOURingSQ,IOURingSQ.Buffer> implements org.lwjgl.system.NativeResource
An array of IOURingSQ structs.
  • Constructor Details

    • Buffer

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

    • khead

      public IntBuffer khead(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the khead field.
    • ktail

      public IntBuffer ktail(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the ktail field.
    • kring_mask

      public IntBuffer kring_mask(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the IOURingSQ.kring_mask(int) field.
    • kring_entries

      public IntBuffer kring_entries(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the IOURingSQ.kring_entries(int) field.
    • kflags

      public IntBuffer kflags(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the kflags field.
    • kdropped

      public IntBuffer kdropped(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the kdropped field.
    • array

      public IntBuffer array(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a IntBuffer view of the data pointed to by the array field.
    • sqes

      public IOURingSQE sqes()
      Returns:
      a IOURingSQE view of the struct pointed to by the sqes field.
    • sqe_head

      public int sqe_head()
      Returns:
      the value of the sqe_head field.
    • sqe_tail

      public int sqe_tail()
      Returns:
      the value of the sqe_tail field.
    • ring_sz

      public long ring_sz()
      Returns:
      the value of the ring_sz field.
    • ring_ptr

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

      public int ring_mask()
      Returns:
      the value of the ring_mask field.
    • ring_entries

      public int ring_entries()
      Returns:
      the value of the ring_entries field.
    • khead

      public IOURingSQ.Buffer khead(IntBuffer value)
      Sets the address of the specified IntBuffer to the khead field.
    • ktail

      public IOURingSQ.Buffer ktail(IntBuffer value)
      Sets the address of the specified IntBuffer to the ktail field.
    • kring_mask

      public IOURingSQ.Buffer kring_mask(IntBuffer value)
      Sets the address of the specified IntBuffer to the IOURingSQ.kring_mask(int) field.
    • kring_entries

      public IOURingSQ.Buffer kring_entries(IntBuffer value)
      Sets the address of the specified IntBuffer to the IOURingSQ.kring_entries(int) field.
    • kflags

      public IOURingSQ.Buffer kflags(IntBuffer value)
      Sets the address of the specified IntBuffer to the kflags field.
    • kdropped

      public IOURingSQ.Buffer kdropped(IntBuffer value)
      Sets the address of the specified IntBuffer to the kdropped field.
    • array

      public IOURingSQ.Buffer array(IntBuffer value)
      Sets the address of the specified IntBuffer to the array field.
    • sqes

      public IOURingSQ.Buffer sqes(IOURingSQE value)
      Sets the address of the specified IOURingSQE to the sqes field.
    • sqe_head

      public IOURingSQ.Buffer sqe_head(int value)
      Sets the specified value to the sqe_head field.
    • sqe_tail

      public IOURingSQ.Buffer sqe_tail(int value)
      Sets the specified value to the sqe_tail field.
    • ring_ptr

      public IOURingSQ.Buffer ring_ptr(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the ring_ptr field.
    • ring_mask

      public IOURingSQ.Buffer ring_mask(int value)
      Sets the specified value to the ring_mask field.
    • ring_entries

      public IOURingSQ.Buffer ring_entries(int value)
      Sets the specified value to the ring_entries field.