Package org.lwjgl.system.linux.liburing
Class IOSQRingOffsets
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOSQRingOffsets
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOSQRingOffsets extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceFilled with the offset formmap(2).Layout
struct io_sqring_offsets { __u32 head; __u32 tail; __u32 ring_mask; __u32 ring_entries; __u32 flags; __u32 dropped; __u32 array; __u32 resv1; __u64 resv2; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOSQRingOffsets.BufferAn array ofIOSQRingOffsetsstructs.
-
Constructor Summary
Constructors Constructor Description IOSQRingOffsets(java.nio.ByteBuffer container)Creates aIOSQRingOffsetsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarray()IOSQRingOffsetsarray(int value)Sets the specified value to thearrayfield.static IOSQRingOffsetscalloc()Returns a newIOSQRingOffsetsinstance allocated withmemCalloc.static IOSQRingOffsets.Buffercalloc(int capacity)Returns a newIOSQRingOffsets.Bufferinstance allocated withmemCalloc.static IOSQRingOffsets.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOSQRingOffsetscalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOSQRingOffsetscreate()Returns a newIOSQRingOffsetsinstance allocated withBufferUtils.static IOSQRingOffsets.Buffercreate(int capacity)Returns a newIOSQRingOffsets.Bufferinstance allocated withBufferUtils.static IOSQRingOffsetscreate(long address)Returns a newIOSQRingOffsetsinstance for the specified memory address.static IOSQRingOffsets.Buffercreate(long address, int capacity)Create aIOSQRingOffsets.Bufferinstance at the specified memory.static IOSQRingOffsetscreateSafe(long address)static IOSQRingOffsets.BuffercreateSafe(long address, int capacity)intdropped()IOSQRingOffsetsdropped(int value)Sets the specified value to thedroppedfield.intflags()IOSQRingOffsetsflags(int value)Sets the specified value to theflagsfield.inthead()IOSQRingOffsetshead(int value)Sets the specified value to theheadfield.static IOSQRingOffsetsmalloc()Returns a newIOSQRingOffsetsinstance allocated withmemAlloc.static IOSQRingOffsets.Buffermalloc(int capacity)Returns a newIOSQRingOffsets.Bufferinstance allocated withmemAlloc.static IOSQRingOffsets.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.static IOSQRingOffsetsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStack.static intnarray(long struct)Unsafe version ofarray().static voidnarray(long struct, int value)Unsafe version ofarray.static intndropped(long struct)Unsafe version ofdropped().static voidndropped(long struct, int value)Unsafe version ofdropped.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnhead(long struct)Unsafe version ofhead().static voidnhead(long struct, int value)Unsafe version ofhead.static intnresv1(long struct)static voidnresv1(long struct, int value)static longnresv2(long struct)static voidnresv2(long struct, long value)static intnring_entries(long struct)Unsafe version ofring_entries().static voidnring_entries(long struct, int value)Unsafe version ofring_entries.static intnring_mask(long struct)Unsafe version ofring_mask().static voidnring_mask(long struct, int value)Unsafe version ofring_mask.static intntail(long struct)Unsafe version oftail().static voidntail(long struct, int value)Unsafe version oftail.intring_entries()IOSQRingOffsetsring_entries(int value)Sets the specified value to thering_entriesfield.intring_mask()IOSQRingOffsetsring_mask(int value)Sets the specified value to thering_maskfield.IOSQRingOffsetsset(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array)Initializes this struct with the specified values.IOSQRingOffsetsset(IOSQRingOffsets src)Copies the specified struct data to this struct.intsizeof()inttail()IOSQRingOffsetstail(int value)Sets the specified value to thetailfield.
-
-
-
Constructor Detail
-
IOSQRingOffsets
public IOSQRingOffsets(java.nio.ByteBuffer container)
Creates aIOSQRingOffsetsinstance 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
-
head
public int head()
- Returns:
- the value of the
headfield.
-
tail
public int tail()
- Returns:
- the value of the
tailfield.
-
ring_mask
public int ring_mask()
- Returns:
- the value of the
ring_maskfield.
-
ring_entries
public int ring_entries()
- Returns:
- the value of the
ring_entriesfield.
-
flags
public int flags()
- Returns:
- the value of the
flagsfield.
-
dropped
public int dropped()
- Returns:
- the value of the
droppedfield.
-
array
public int array()
- Returns:
- the value of the
arrayfield.
-
head
public IOSQRingOffsets head(int value)
Sets the specified value to theheadfield.
-
tail
public IOSQRingOffsets tail(int value)
Sets the specified value to thetailfield.
-
ring_mask
public IOSQRingOffsets ring_mask(int value)
Sets the specified value to thering_maskfield.
-
ring_entries
public IOSQRingOffsets ring_entries(int value)
Sets the specified value to thering_entriesfield.
-
flags
public IOSQRingOffsets flags(int value)
Sets the specified value to theflagsfield.
-
dropped
public IOSQRingOffsets dropped(int value)
Sets the specified value to thedroppedfield.
-
array
public IOSQRingOffsets array(int value)
Sets the specified value to thearrayfield.
-
set
public IOSQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array)
Initializes this struct with the specified values.
-
set
public IOSQRingOffsets set(IOSQRingOffsets src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOSQRingOffsets malloc()
Returns a newIOSQRingOffsetsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOSQRingOffsets calloc()
Returns a newIOSQRingOffsetsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOSQRingOffsets create()
Returns a newIOSQRingOffsetsinstance allocated withBufferUtils.
-
create
public static IOSQRingOffsets create(long address)
Returns a newIOSQRingOffsetsinstance for the specified memory address.
-
createSafe
@Nullable public static IOSQRingOffsets createSafe(long address)
-
malloc
public static IOSQRingOffsets.Buffer malloc(int capacity)
Returns a newIOSQRingOffsets.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOSQRingOffsets.Buffer calloc(int capacity)
Returns a newIOSQRingOffsets.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOSQRingOffsets.Buffer create(int capacity)
Returns a newIOSQRingOffsets.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOSQRingOffsets.Buffer create(long address, int capacity)
Create aIOSQRingOffsets.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOSQRingOffsets.Buffer createSafe(long address, int capacity)
-
malloc
public static IOSQRingOffsets malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOSQRingOffsets calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOSQRingOffsets.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOSQRingOffsets.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nhead
public static int nhead(long struct)
Unsafe version ofhead().
-
ntail
public static int ntail(long struct)
Unsafe version oftail().
-
nring_mask
public static int nring_mask(long struct)
Unsafe version ofring_mask().
-
nring_entries
public static int nring_entries(long struct)
Unsafe version ofring_entries().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
ndropped
public static int ndropped(long struct)
Unsafe version ofdropped().
-
narray
public static int narray(long struct)
Unsafe version ofarray().
-
nresv1
public static int nresv1(long struct)
-
nresv2
public static long nresv2(long struct)
-
nhead
public static void nhead(long struct, int value)Unsafe version ofhead.
-
ntail
public static void ntail(long struct, int value)Unsafe version oftail.
-
nring_mask
public static void nring_mask(long struct, int value)Unsafe version ofring_mask.
-
nring_entries
public static void nring_entries(long struct, int value)Unsafe version ofring_entries.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
ndropped
public static void ndropped(long struct, int value)Unsafe version ofdropped.
-
narray
public static void narray(long struct, int value)Unsafe version ofarray.
-
nresv1
public static void nresv1(long struct, int value)
-
nresv2
public static void nresv2(long struct, long value)
-
-