Class IOURingQueryHdr

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

@NativeType("struct io_uring_query_hdr") public class IOURingQueryHdr extends Struct<IOURingQueryHdr> implements NativeResource
struct io_uring_query_hdr {
    __u64 next_entry;
    __u64 query_data;
    __u32 query_op;
    __u32 size;
    __s32 result;
    __u32 __resv[3];
}
  • Field Details

    • SIZEOF

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

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

      public static final int NEXT_ENTRY
      The struct member offsets.
    • QUERY_DATA

      public static final int QUERY_DATA
      The struct member offsets.
    • QUERY_OP

      public static final int QUERY_OP
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • RESULT

      public static final int RESULT
      The struct member offsets.
    • __RESV

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

    • IOURingQueryHdr

      public IOURingQueryHdr(ByteBuffer container)
      Creates a IOURingQueryHdr 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<IOURingQueryHdr>
    • next_entry

      @NativeType("__u64") public long next_entry()
      Returns:
      the value of the next_entry field.
    • query_data

      @NativeType("__u64") public long query_data()
      Returns:
      the value of the query_data field.
    • query_op

      @NativeType("__u32") public int query_op()
      Returns:
      the value of the query_op field.
    • size

      @NativeType("__u32") public int size()
      Returns:
      the value of the size field.
    • result

      @NativeType("__s32") public int result()
      Returns:
      the value of the result field.
    • next_entry

      public IOURingQueryHdr next_entry(@NativeType("__u64") long value)
      Sets the specified value to the next_entry field.
    • query_data

      public IOURingQueryHdr query_data(@NativeType("__u64") long value)
      Sets the specified value to the query_data field.
    • query_op

      public IOURingQueryHdr query_op(@NativeType("__u32") int value)
      Sets the specified value to the query_op field.
    • size

      public IOURingQueryHdr size(@NativeType("__u32") int value)
      Sets the specified value to the size field.
    • result

      public IOURingQueryHdr result(@NativeType("__s32") int value)
      Sets the specified value to the result field.
    • set

      public IOURingQueryHdr set(long next_entry, long query_data, int query_op, int size, int result)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingQueryHdr.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new IOURingQueryHdr.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
    • nnext_entry

      public static long nnext_entry(long struct)
      Unsafe version of next_entry().
    • nquery_data

      public static long nquery_data(long struct)
      Unsafe version of query_data().
    • nquery_op

      public static int nquery_op(long struct)
      Unsafe version of query_op().
    • nsize

      public static int nsize(long struct)
      Unsafe version of size().
    • nresult

      public static int nresult(long struct)
      Unsafe version of result().
    • n__resv

      public static IntBuffer n__resv(long struct)
    • n__resv

      public static int n__resv(long struct, int index)
    • nnext_entry

      public static void nnext_entry(long struct, long value)
      Unsafe version of next_entry.
    • nquery_data

      public static void nquery_data(long struct, long value)
      Unsafe version of query_data.
    • nquery_op

      public static void nquery_op(long struct, int value)
      Unsafe version of query_op.
    • nsize

      public static void nsize(long struct, int value)
      Unsafe version of size.
    • nresult

      public static void nresult(long struct, int value)
      Unsafe version of result.
    • n__resv

      public static void n__resv(long struct, IntBuffer value)
    • n__resv

      public static void n__resv(long struct, int index, int value)