Class IOURingProbeOp

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

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

    Layout

    
     struct io_uring_probe_op {
         __u8 op;
         __u8 resv;
         __u16 flags();
         __u32 resv2;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IOURingProbeOp.Buffer
      An array of IOURingProbeOp structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

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

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int FLAGS
      OP
      RESV
      RESV2
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

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

      Constructors 
      Constructor Description
      IOURingProbeOp​(java.nio.ByteBuffer container)
      Creates a IOURingProbeOp instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • OP, RESV, FLAGS, RESV2

        The struct member offsets.
    • Constructor Detail

      • IOURingProbeOp

        public IOURingProbeOp​(java.nio.ByteBuffer container)
        Creates a IOURingProbeOp 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
      • op

        public byte op()
        Returns:
        the value of the op field.
      • resv

        public byte resv()
        Returns:
        the value of the resv field.
      • resv2

        public int resv2()
        Returns:
        the value of the resv2 field.
      • op

        public IOURingProbeOp op​(byte value)
        Sets the specified value to the op field.
      • resv

        public IOURingProbeOp resv​(byte value)
        Sets the specified value to the resv field.
      • resv2

        public IOURingProbeOp resv2​(int value)
        Sets the specified value to the resv2 field.
      • set

        public IOURingProbeOp set​(byte op,
                                  byte resv,
                                  short flags,
                                  int resv2)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static byte nop​(long struct)
        Unsafe version of op().
      • nresv

        public static byte nresv​(long struct)
        Unsafe version of resv().
      • nflags

        public static short nflags​(long struct)
        Unsafe version of flags().
      • nresv2

        public static int nresv2​(long struct)
        Unsafe version of resv2().
      • nop

        public static void nop​(long struct,
                               byte value)
        Unsafe version of op.
      • nresv

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

        public static void nflags​(long struct,
                                  short value)
        Unsafe version of flags.
      • nresv2

        public static void nresv2​(long struct,
                                  int value)
        Unsafe version of resv2.