Package org.lwjgl.system.linux.liburing
Class IOURingRestriction
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingRestriction
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOURingRestriction extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct io_uring_restriction { __u16 opcode; union { __u8 register_op; __u8 sqe_op; __u8 sqe_flags; }; __u8 resv; __u32 resv2[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingRestriction.BufferAn array ofIOURingRestrictionstructs.
-
Constructor Summary
Constructors Constructor Description IOURingRestriction(java.nio.ByteBuffer container)Creates aIOURingRestrictioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingRestrictioncalloc()Returns a newIOURingRestrictioninstance allocated withmemCalloc.static IOURingRestriction.Buffercalloc(int capacity)Returns a newIOURingRestriction.Bufferinstance allocated withmemCalloc.static IOURingRestriction.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRestriction.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRestrictioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRestrictioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRestrictioncreate()Returns a newIOURingRestrictioninstance allocated withBufferUtils.static IOURingRestriction.Buffercreate(int capacity)Returns a newIOURingRestriction.Bufferinstance allocated withBufferUtils.static IOURingRestrictioncreate(long address)Returns a newIOURingRestrictioninstance for the specified memory address.static IOURingRestriction.Buffercreate(long address, int capacity)Create aIOURingRestriction.Bufferinstance at the specified memory.static IOURingRestrictioncreateSafe(long address)static IOURingRestriction.BuffercreateSafe(long address, int capacity)static IOURingRestrictionmalloc()Returns a newIOURingRestrictioninstance allocated withmemAlloc.static IOURingRestriction.Buffermalloc(int capacity)Returns a newIOURingRestriction.Bufferinstance allocated withmemAlloc.static IOURingRestriction.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRestriction.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRestrictionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRestrictioninstance allocated on the specifiedMemoryStack.static shortnopcode(long struct)Unsafe version ofopcode().static voidnopcode(long struct, short value)Unsafe version ofopcode.static bytenregister_op(long struct)Unsafe version ofregister_op().static voidnregister_op(long struct, byte value)Unsafe version ofregister_op.static bytenresv(long struct)static voidnresv(long struct, byte value)static java.nio.IntBuffernresv2(long struct)static intnresv2(long struct, int index)static voidnresv2(long struct, int index, int value)static voidnresv2(long struct, java.nio.IntBuffer value)static bytensqe_flags(long struct)Unsafe version ofsqe_flags().static voidnsqe_flags(long struct, byte value)Unsafe version ofsqe_flags.static bytensqe_op(long struct)Unsafe version ofsqe_op().static voidnsqe_op(long struct, byte value)Unsafe version ofsqe_op.shortopcode()IOURingRestrictionopcode(short value)Sets the specified value to theopcodefield.byteregister_op()IOURingRestrictionregister_op(byte value)Sets the specified value to theregister_opfield.IOURingRestrictionset(IOURingRestriction src)Copies the specified struct data to this struct.intsizeof()bytesqe_flags()IOURingRestrictionsqe_flags(byte value)Sets the specified value to thesqe_flagsfield.bytesqe_op()IOURingRestrictionsqe_op(byte value)Sets the specified value to thesqe_opfield.
-
-
-
Constructor Detail
-
IOURingRestriction
public IOURingRestriction(java.nio.ByteBuffer container)
Creates aIOURingRestrictioninstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
opcode
public short opcode()
- Returns:
- the value of the
opcodefield.
-
register_op
public byte register_op()
- Returns:
- the value of the
register_opfield.
-
sqe_op
public byte sqe_op()
- Returns:
- the value of the
sqe_opfield.
-
sqe_flags
public byte sqe_flags()
- Returns:
- the value of the
sqe_flagsfield.
-
opcode
public IOURingRestriction opcode(short value)
Sets the specified value to theopcodefield.
-
register_op
public IOURingRestriction register_op(byte value)
Sets the specified value to theregister_opfield.
-
sqe_op
public IOURingRestriction sqe_op(byte value)
Sets the specified value to thesqe_opfield.
-
sqe_flags
public IOURingRestriction sqe_flags(byte value)
Sets the specified value to thesqe_flagsfield.
-
set
public IOURingRestriction set(IOURingRestriction src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOURingRestriction malloc()
Returns a newIOURingRestrictioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingRestriction calloc()
Returns a newIOURingRestrictioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingRestriction create()
Returns a newIOURingRestrictioninstance allocated withBufferUtils.
-
create
public static IOURingRestriction create(long address)
Returns a newIOURingRestrictioninstance for the specified memory address.
-
createSafe
@Nullable public static IOURingRestriction createSafe(long address)
-
malloc
public static IOURingRestriction.Buffer malloc(int capacity)
Returns a newIOURingRestriction.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingRestriction.Buffer calloc(int capacity)
Returns a newIOURingRestriction.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRestriction.Buffer create(int capacity)
Returns a newIOURingRestriction.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRestriction.Buffer create(long address, int capacity)
Create aIOURingRestriction.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOURingRestriction.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingRestriction malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRestrictioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingRestriction calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRestrictioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOURingRestriction.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRestriction.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOURingRestriction.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRestriction.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nopcode
public static short nopcode(long struct)
Unsafe version ofopcode().
-
nregister_op
public static byte nregister_op(long struct)
Unsafe version ofregister_op().
-
nsqe_op
public static byte nsqe_op(long struct)
Unsafe version ofsqe_op().
-
nsqe_flags
public static byte nsqe_flags(long struct)
Unsafe version ofsqe_flags().
-
nresv
public static byte nresv(long struct)
-
nresv2
public static java.nio.IntBuffer nresv2(long struct)
-
nresv2
public static int nresv2(long struct, int index)
-
nopcode
public static void nopcode(long struct, short value)Unsafe version ofopcode.
-
nregister_op
public static void nregister_op(long struct, byte value)Unsafe version ofregister_op.
-
nsqe_op
public static void nsqe_op(long struct, byte value)Unsafe version ofsqe_op.
-
nsqe_flags
public static void nsqe_flags(long struct, byte value)Unsafe version ofsqe_flags.
-
nresv
public static void nresv(long struct, byte value)
-
nresv2
public static void nresv2(long struct, java.nio.IntBuffer value)
-
nresv2
public static void nresv2(long struct, int index, int value)
-
-