Class IOUringNotificationSlot

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

public class IOUringNotificationSlot extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource

Layout


 struct io_uring_notification_slot {
     __u64 tag;
     __u64 resv[3];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TAG
      The struct member offsets.
    • RESV

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

    • IOUringNotificationSlot

      public IOUringNotificationSlot(ByteBuffer container)
      Creates a IOUringNotificationSlot 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
    • tag

      public long tag()
      Returns:
      the value of the tag field.
    • resv

      public LongBuffer resv()
      Returns:
      a LongBuffer view of the resv field.
    • resv

      public long resv(int index)
      Returns:
      the value at the specified index of the resv field.
    • tag

      public IOUringNotificationSlot tag(long value)
      Sets the specified value to the tag field.
    • resv

      public IOUringNotificationSlot resv(LongBuffer value)
      Copies the specified LongBuffer to the resv field.
    • resv

      public IOUringNotificationSlot resv(int index, long value)
      Sets the specified value at the specified index of the resv field.
    • set

      public IOUringNotificationSlot set(long tag, LongBuffer resv)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOUringNotificationSlot.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOUringNotificationSlot.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
    • ntag

      public static long ntag(long struct)
      Unsafe version of tag().
    • nresv

      public static LongBuffer nresv(long struct)
      Unsafe version of resv().
    • nresv

      public static long nresv(long struct, int index)
      Unsafe version of resv.
    • ntag

      public static void ntag(long struct, long value)
      Unsafe version of tag.
    • nresv

      public static void nresv(long struct, LongBuffer value)
      Unsafe version of resv.
    • nresv

      public static void nresv(long struct, int index, long value)
      Unsafe version of resv.