Class IOURingProbe

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

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

    Layout

    
     struct io_uring_probe {
         __u8 last_op;
         __u8 ops_len;
         __u16 resv;
         __u32 resv2[3];
         struct io_uring_probe_op ops[0];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LAST_OP, OPS_LEN, RESV, RESV2, OPS

        The struct member offsets.
    • Constructor Detail

      • IOURingProbe

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

        public byte last_op()
        Returns:
        the value of the last_op field.
      • ops_len

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

        public short resv()
        Returns:
        the value of the resv field.
      • last_op

        public IOURingProbe last_op​(byte value)
        Sets the specified value to the last_op field.
      • ops_len

        public IOURingProbe ops_len​(byte value)
        Sets the specified value to the ops_len field.
      • resv

        public IOURingProbe resv​(short value)
        Sets the specified value to the resv field.
      • ops

        public IOURingProbe ops​(int index,
                                java.util.function.Consumer<IOURingProbeOp> consumer)
        Passes the element at index of the ops field to the specified Consumer.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static byte nlast_op​(long struct)
        Unsafe version of last_op().
      • nops_len

        public static byte nops_len​(long struct)
        Unsafe version of ops_len().
      • nresv

        public static short nresv​(long struct)
        Unsafe version of resv().
      • nresv2

        public static java.nio.IntBuffer nresv2​(long struct)
      • nresv2

        public static int nresv2​(long struct,
                                 int index)
      • nops

        public static IOURingProbeOp nops​(long struct,
                                          int index)
        Unsafe version of ops.
      • nlast_op

        public static void nlast_op​(long struct,
                                    byte value)
        Unsafe version of last_op.
      • nops_len

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

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

        public static void nresv2​(long struct,
                                  java.nio.IntBuffer value)
      • nresv2

        public static void nresv2​(long struct,
                                  int index,
                                  int value)
      • nops

        public static void nops​(long struct,
                                int index,
                                IOURingProbeOp value)
        Unsafe version of ops.