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];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingQueryHdr(ByteBuffer container) Creates aIOURingQueryHdrinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingQueryHdrcalloc()Returns a newIOURingQueryHdrinstance allocated withmemCalloc.static IOURingQueryHdr.Buffercalloc(int capacity) Returns a newIOURingQueryHdr.Bufferinstance allocated withmemCalloc.static IOURingQueryHdr.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingQueryHdr.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingQueryHdrcalloc(MemoryStack stack) Returns a newIOURingQueryHdrinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingQueryHdrcreate()Returns a newIOURingQueryHdrinstance allocated withBufferUtils.static IOURingQueryHdr.Buffercreate(int capacity) Returns a newIOURingQueryHdr.Bufferinstance allocated withBufferUtils.static IOURingQueryHdrcreate(long address) Returns a newIOURingQueryHdrinstance for the specified memory address.static IOURingQueryHdr.Buffercreate(long address, int capacity) Create aIOURingQueryHdr.Bufferinstance at the specified memory.static @Nullable IOURingQueryHdrcreateSafe(long address) static @Nullable IOURingQueryHdr.BuffercreateSafe(long address, int capacity) static IOURingQueryHdrmalloc()Returns a newIOURingQueryHdrinstance allocated withmemAlloc.static IOURingQueryHdr.Buffermalloc(int capacity) Returns a newIOURingQueryHdr.Bufferinstance allocated withmemAlloc.static IOURingQueryHdr.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingQueryHdr.Bufferinstance allocated on the specifiedMemoryStack.static IOURingQueryHdrmalloc(MemoryStack stack) Returns a newIOURingQueryHdrinstance allocated on the specifiedMemoryStack.static IntBuffern__resv(long struct) static intn__resv(long struct, int index) static voidn__resv(long struct, int index, int value) static voidlongnext_entry(long value) Sets the specified value to thenext_entryfield.static longnnext_entry(long struct) Unsafe version ofnext_entry().static voidnnext_entry(long struct, long value) Unsafe version ofnext_entry.static longnquery_data(long struct) Unsafe version ofquery_data().static voidnquery_data(long struct, long value) Unsafe version ofquery_data.static intnquery_op(long struct) Unsafe version ofquery_op().static voidnquery_op(long struct, int value) Unsafe version ofquery_op.static intnresult(long struct) Unsafe version ofresult().static voidnresult(long struct, int value) Unsafe version ofresult.static intnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, int value) Unsafe version ofsize.longquery_data(long value) Sets the specified value to thequery_datafield.intquery_op()query_op(int value) Sets the specified value to thequery_opfield.intresult()result(int value) Sets the specified value to theresultfield.set(long next_entry, long query_data, int query_op, int size, int result) Initializes this struct with the specified values.set(IOURingQueryHdr src) Copies the specified struct data to this struct.intsize()size(int value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NEXT_ENTRY
public static final int NEXT_ENTRYThe struct member offsets. -
QUERY_DATA
public static final int QUERY_DATAThe struct member offsets. -
QUERY_OP
public static final int QUERY_OPThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
RESULT
public static final int RESULTThe struct member offsets. -
__RESV
public static final int __RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingQueryHdr
Creates aIOURingQueryHdrinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<IOURingQueryHdr>
-
next_entry
- Returns:
- the value of the
next_entryfield.
-
query_data
- Returns:
- the value of the
query_datafield.
-
query_op
- Returns:
- the value of the
query_opfield.
-
size
- Returns:
- the value of the
sizefield.
-
result
- Returns:
- the value of the
resultfield.
-
next_entry
Sets the specified value to thenext_entryfield. -
query_data
Sets the specified value to thequery_datafield. -
query_op
Sets the specified value to thequery_opfield. -
size
Sets the specified value to thesizefield. -
result
Sets the specified value to theresultfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURingQueryHdrinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingQueryHdrinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingQueryHdrinstance allocated withBufferUtils. -
create
Returns a newIOURingQueryHdrinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingQueryHdr.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingQueryHdr.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingQueryHdr.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingQueryHdr.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingQueryHdrinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingQueryHdrinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingQueryHdr.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingQueryHdr.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnext_entry
public static long nnext_entry(long struct) Unsafe version ofnext_entry(). -
nquery_data
public static long nquery_data(long struct) Unsafe version ofquery_data(). -
nquery_op
public static int nquery_op(long struct) Unsafe version ofquery_op(). -
nsize
public static int nsize(long struct) Unsafe version ofsize(). -
nresult
public static int nresult(long struct) Unsafe version ofresult(). -
n__resv
-
n__resv
public static int n__resv(long struct, int index) -
nnext_entry
public static void nnext_entry(long struct, long value) Unsafe version ofnext_entry. -
nquery_data
public static void nquery_data(long struct, long value) Unsafe version ofquery_data. -
nquery_op
public static void nquery_op(long struct, int value) Unsafe version ofquery_op. -
nsize
public static void nsize(long struct, int value) Unsafe version ofsize. -
nresult
public static void nresult(long struct, int value) Unsafe version ofresult. -
n__resv
-
n__resv
public static void n__resv(long struct, int index, int value)
-