Class IOURing

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURing>
org.lwjgl.system.linux.liburing.IOURing
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class IOURing extends org.lwjgl.system.Struct<IOURing> implements org.lwjgl.system.NativeResource

Layout


 struct io_uring {
     struct io_uring_sq sq;
     struct io_uring_cq cq;
     unsigned int flags;
     int ring_fd;
     unsigned int features;
     int enter_ring_fd;
     __u8 int_flags;
     __u8 pad[3];
     unsigned pad2;
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of IOURing structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    IOURing(ByteBuffer container)
    Creates a IOURing instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static IOURing
    Returns a new IOURing instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new IOURing.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new IOURing.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static IOURing
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new IOURing instance allocated on the specified MemoryStack and initializes all its bits to zero.
    cq()
     
    cq(Consumer<IOURingCQ> consumer)
    Passes the cq field to the specified Consumer.
    cq(IOURingCQ value)
    Copies the specified IOURingCQ to the cq field.
    static IOURing
    Returns a new IOURing instance allocated with BufferUtils.
    create(int capacity)
    Returns a new IOURing.Buffer instance allocated with BufferUtils.
    static IOURing
    create(long address)
    Returns a new IOURing instance for the specified memory address.
    create(long address, int capacity)
    Create a IOURing.Buffer instance at the specified memory.
    static IOURing
    createSafe(long address)
    Like create, but returns null if address is NULL.
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    int
     
    enter_ring_fd(int value)
    Sets the specified value to the enter_ring_fd field.
    int
     
    features(int value)
    Sets the specified value to the features field.
    int
     
    flags(int value)
    Sets the specified value to the flags field.
    byte
     
    int_flags(byte value)
    Sets the specified value to the int_flags field.
    static IOURing
    Returns a new IOURing instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new IOURing.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new IOURing.Buffer instance allocated on the specified MemoryStack.
    static IOURing
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new IOURing instance allocated on the specified MemoryStack.
    static IOURingCQ
    ncq(long struct)
    Unsafe version of cq().
    static void
    ncq(long struct, IOURingCQ value)
    Unsafe version of cq.
    static int
    nenter_ring_fd(long struct)
    Unsafe version of enter_ring_fd().
    static void
    nenter_ring_fd(long struct, int value)
    Unsafe version of enter_ring_fd.
    static int
    nfeatures(long struct)
    Unsafe version of features().
    static void
    nfeatures(long struct, int value)
    Unsafe version of features.
    static int
    nflags(long struct)
    Unsafe version of flags().
    static void
    nflags(long struct, int value)
    Unsafe version of flags.
    static byte
    nint_flags(long struct)
    Unsafe version of int_flags().
    static void
    nint_flags(long struct, byte value)
    Unsafe version of int_flags.
    static ByteBuffer
    npad(long struct)
     
    static byte
    npad(long struct, int index)
     
    static void
    npad(long struct, int index, byte value)
     
    static void
    npad(long struct, ByteBuffer value)
     
    static int
    npad2(long struct)
     
    static void
    npad2(long struct, int value)
     
    static int
    nring_fd(long struct)
    Unsafe version of ring_fd().
    static void
    nring_fd(long struct, int value)
    Unsafe version of ring_fd.
    static IOURingSQ
    nsq(long struct)
    Unsafe version of sq().
    static void
    nsq(long struct, IOURingSQ value)
    Unsafe version of sq.
    int
     
    ring_fd(int value)
    Sets the specified value to the ring_fd field.
    set(IOURing src)
    Copies the specified struct data to this struct.
    set(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags)
    Initializes this struct with the specified values.
    int
     
    sq()
     
    sq(Consumer<IOURingSQ> consumer)
    Passes the sq field to the specified Consumer.
    sq(IOURingSQ value)
    Copies the specified IOURingSQ to the sq field.
    static void
    validate(long struct)
    Validates pointer members that should not be NULL.

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SQ

      public static final int SQ
      The struct member offsets.
    • CQ

      public static final int CQ
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • RING_FD

      public static final int RING_FD
      The struct member offsets.
    • FEATURES

      public static final int FEATURES
      The struct member offsets.
    • ENTER_RING_FD

      public static final int ENTER_RING_FD
      The struct member offsets.
    • INT_FLAGS

      public static final int INT_FLAGS
      The struct member offsets.
    • PAD

      public static final int PAD
      The struct member offsets.
    • PAD2

      public static final int PAD2
      The struct member offsets.
  • Constructor Details

    • IOURing

      public IOURing(ByteBuffer container)
      Creates a IOURing instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<IOURing>
    • sq

      public IOURingSQ sq()
      Returns:
      a IOURingSQ view of the sq field.
    • cq

      public IOURingCQ cq()
      Returns:
      a IOURingCQ view of the cq field.
    • flags

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

      public int ring_fd()
      Returns:
      the value of the ring_fd field.
    • features

      public int features()
      Returns:
      the value of the features field.
    • enter_ring_fd

      public int enter_ring_fd()
      Returns:
      the value of the enter_ring_fd field.
    • int_flags

      public byte int_flags()
      Returns:
      the value of the int_flags field.
    • sq

      public IOURing sq(IOURingSQ value)
      Copies the specified IOURingSQ to the sq field.
    • sq

      public IOURing sq(Consumer<IOURingSQ> consumer)
      Passes the sq field to the specified Consumer.
    • cq

      public IOURing cq(IOURingCQ value)
      Copies the specified IOURingCQ to the cq field.
    • cq

      public IOURing cq(Consumer<IOURingCQ> consumer)
      Passes the cq field to the specified Consumer.
    • flags

      public IOURing flags(int value)
      Sets the specified value to the flags field.
    • ring_fd

      public IOURing ring_fd(int value)
      Sets the specified value to the ring_fd field.
    • features

      public IOURing features(int value)
      Sets the specified value to the features field.
    • enter_ring_fd

      public IOURing enter_ring_fd(int value)
      Sets the specified value to the enter_ring_fd field.
    • int_flags

      public IOURing int_flags(byte value)
      Sets the specified value to the int_flags field.
    • set

      public IOURing set(IOURingSQ sq, IOURingCQ cq, int flags, int ring_fd, int features, int enter_ring_fd, byte int_flags)
      Initializes this struct with the specified values.
    • set

      public IOURing set(IOURing src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static IOURing malloc()
      Returns a new IOURing instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static IOURing calloc()
      Returns a new IOURing instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static IOURing create()
      Returns a new IOURing instance allocated with BufferUtils.
    • create

      public static IOURing create(long address)
      Returns a new IOURing instance for the specified memory address.
    • createSafe

      @Nullable public static IOURing createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURing.Buffer malloc(int capacity)
      Returns a new IOURing.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static IOURing.Buffer calloc(int capacity)
      Returns a new IOURing.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURing.Buffer create(int capacity)
      Returns a new IOURing.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURing.Buffer create(long address, int capacity)
      Create a IOURing.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static IOURing.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURing malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new IOURing instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static IOURing calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new IOURing instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static IOURing.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURing.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static IOURing.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURing.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsq

      public static IOURingSQ nsq(long struct)
      Unsafe version of sq().
    • ncq

      public static IOURingCQ ncq(long struct)
      Unsafe version of cq().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • nring_fd

      public static int nring_fd(long struct)
      Unsafe version of ring_fd().
    • nfeatures

      public static int nfeatures(long struct)
      Unsafe version of features().
    • nenter_ring_fd

      public static int nenter_ring_fd(long struct)
      Unsafe version of enter_ring_fd().
    • nint_flags

      public static byte nint_flags(long struct)
      Unsafe version of int_flags().
    • npad

      public static ByteBuffer npad(long struct)
    • npad

      public static byte npad(long struct, int index)
    • npad2

      public static int npad2(long struct)
    • nsq

      public static void nsq(long struct, IOURingSQ value)
      Unsafe version of sq.
    • ncq

      public static void ncq(long struct, IOURingCQ value)
      Unsafe version of cq.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • nring_fd

      public static void nring_fd(long struct, int value)
      Unsafe version of ring_fd.
    • nfeatures

      public static void nfeatures(long struct, int value)
      Unsafe version of features.
    • nenter_ring_fd

      public static void nenter_ring_fd(long struct, int value)
      Unsafe version of enter_ring_fd.
    • nint_flags

      public static void nint_flags(long struct, byte value)
      Unsafe version of int_flags.
    • npad

      public static void npad(long struct, ByteBuffer value)
    • npad

      public static void npad(long struct, int index, byte value)
    • npad2

      public static void npad2(long struct, int value)
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate