Class IOURingProbeOp

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingProbeOp
All Implemented Interfaces:
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 
    An array of IOURingProbeOp structs.

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

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    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
    Creates a IOURingProbeOp instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new IOURingProbeOp instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new IOURingProbeOp.Buffer instance allocated with memCalloc.
    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.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new IOURingProbeOp instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new IOURingProbeOp instance allocated with BufferUtils.
    create(int capacity)
    Returns a new IOURingProbeOp.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new IOURingProbeOp instance for the specified memory address.
    create(long address, int capacity)
    Create a IOURingProbeOp.Buffer instance at the specified memory.
    createSafe(long address)
    Like create, but returns null if address is NULL.
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    short
    flags(short value)
    Sets the specified value to the flags() field.
    Returns a new IOURingProbeOp instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new IOURingProbeOp.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new IOURingProbeOp.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new IOURingProbeOp instance allocated on the specified MemoryStack.
    static short
    nflags(long struct)
    Unsafe version of flags().
    static void
    nflags(long struct, short value)
    Unsafe version of flags.
    static byte
    nop(long struct)
    Unsafe version of op().
    static void
    nop(long struct, byte value)
    Unsafe version of op.
    static byte
    nresv(long struct)
    Unsafe version of resv().
    static void
    nresv(long struct, byte value)
    Unsafe version of resv.
    static int
    nresv2(long struct)
    Unsafe version of resv2().
    static void
    nresv2(long struct, int value)
    Unsafe version of resv2.
    byte
    op()
     
    op(byte value)
    Sets the specified value to the op field.
    byte
     
    resv(byte value)
    Sets the specified value to the resv field.
    int
     
    resv2(int value)
    Sets the specified value to the resv2 field.
    set(byte op, byte resv, short flags, int resv2)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

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

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

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

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

      public static final int FLAGS
      The struct member offsets.
    • RESV2

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

    • IOURingProbeOp

      public IOURingProbeOp(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 Details

    • 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.
    • flags

      public short flags()
    • 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.
    • flags

      public IOURingProbeOp flags(short value)
      Sets the specified value to the flags() 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(int capacity)
      Returns a new IOURingProbeOp.Buffer instance allocated with BufferUtils.
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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.