Class IOURingCQ.Buffer

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

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

    • Buffer

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

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

      public IOURingCQE cqes()
      Returns:
      a IOURingCQE view of the struct pointed to by the cqes 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 IOURingCQ.Buffer khead(IntBuffer value)
      Sets the address of the specified IntBuffer to the khead field.
    • ktail

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

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

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

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

      public IOURingCQ.Buffer koverflow(IntBuffer value)
      Sets the address of the specified IntBuffer to the koverflow field.
    • cqes

      public IOURingCQ.Buffer cqes(IOURingCQE value)
      Sets the address of the specified IOURingCQE to the cqes field.
    • ring_ptr

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

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

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