Class IOURingGeteventsArg

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

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

Layout


 struct io_uring_getevents_arg {
     __u64 sigmask;
     __u32 sigmask_sz;
     __u32 pad;
     __u64 ts;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SIGMASK
      The struct member offsets.
    • SIGMASK_SZ

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

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

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

    • IOURingGeteventsArg

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

      public long sigmask()
      Returns:
      the value of the sigmask field.
    • sigmask_sz

      public int sigmask_sz()
      Returns:
      the value of the sigmask_sz field.
    • pad

      public int pad()
      Returns:
      the value of the pad field.
    • ts

      public long ts()
      Returns:
      the value of the ts field.
    • sigmask

      public IOURingGeteventsArg sigmask(long value)
      Sets the specified value to the sigmask field.
    • sigmask_sz

      public IOURingGeteventsArg sigmask_sz(int value)
      Sets the specified value to the sigmask_sz field.
    • pad

      public IOURingGeteventsArg pad(int value)
      Sets the specified value to the pad field.
    • ts

      public IOURingGeteventsArg ts(long value)
      Sets the specified value to the ts field.
    • set

      public IOURingGeteventsArg set(long sigmask, int sigmask_sz, int pad, long ts)
      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 IOURingGeteventsArg malloc()
      Returns a new IOURingGeteventsArg instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nsigmask(long struct)
      Unsafe version of sigmask().
    • nsigmask_sz

      public static int nsigmask_sz(long struct)
      Unsafe version of sigmask_sz().
    • npad

      public static int npad(long struct)
      Unsafe version of pad().
    • nts

      public static long nts(long struct)
      Unsafe version of ts().
    • nsigmask

      public static void nsigmask(long struct, long value)
      Unsafe version of sigmask.
    • nsigmask_sz

      public static void nsigmask_sz(long struct, int value)
      Unsafe version of sigmask_sz.
    • npad

      public static void npad(long struct, int value)
      Unsafe version of pad.
    • nts

      public static void nts(long struct, long value)
      Unsafe version of ts.