Class IOURingGeteventsArg

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

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

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SIGMASK, SIGMASK_SZ, PAD, TS

        The struct member offsets.
    • Constructor Detail

      • IOURingGeteventsArg

        public IOURingGeteventsArg​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • set

        public IOURingGeteventsArg set​(long sigmask,
                                       int sigmask_sz,
                                       int pad,
                                       long ts)
        Initializes this struct with the specified values.
      • 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 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.