Package org.lwjgl.sdl
Class SDL_AsyncIOOutcome
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct SDL_AsyncIOOutcome {
SDL_AsyncIO * asyncio;
SDL_AsyncIOTaskType type;
SDL_AsyncIOResult result;
void * buffer;
Uint64 offset;
Uint64 bytes_requested;
Uint64 bytes_transferred;
void * userdata;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_AsyncIOOutcome
(ByteBuffer container) Creates aSDL_AsyncIOOutcome
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
asyncio()
buffer
(int capacity) long
long
static SDL_AsyncIOOutcome
calloc()
Returns a newSDL_AsyncIOOutcome
instance allocated withmemCalloc
.static SDL_AsyncIOOutcome.Buffer
calloc
(int capacity) Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withmemCalloc
.static SDL_AsyncIOOutcome.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_AsyncIOOutcome
calloc
(MemoryStack stack) Returns a newSDL_AsyncIOOutcome
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_AsyncIOOutcome
create()
Returns a newSDL_AsyncIOOutcome
instance allocated withBufferUtils
.static SDL_AsyncIOOutcome.Buffer
create
(int capacity) Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withBufferUtils
.static SDL_AsyncIOOutcome
create
(long address) Returns a newSDL_AsyncIOOutcome
instance for the specified memory address.static SDL_AsyncIOOutcome.Buffer
create
(long address, int capacity) Create aSDL_AsyncIOOutcome.Buffer
instance at the specified memory.static @Nullable SDL_AsyncIOOutcome
createSafe
(long address) static @Nullable SDL_AsyncIOOutcome.Buffer
createSafe
(long address, int capacity) static SDL_AsyncIOOutcome
malloc()
Returns a newSDL_AsyncIOOutcome
instance allocated withmemAlloc
.static SDL_AsyncIOOutcome.Buffer
malloc
(int capacity) Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withmemAlloc
.static SDL_AsyncIOOutcome.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_AsyncIOOutcome
malloc
(MemoryStack stack) Returns a newSDL_AsyncIOOutcome
instance allocated on the specifiedMemoryStack
.static long
nasyncio
(long struct) Unsafe version ofasyncio()
.static ByteBuffer
nbuffer
(long struct, int capacity) Unsafe version ofbuffer
.static long
nbytes_requested
(long struct) Unsafe version ofbytes_requested()
.static long
nbytes_transferred
(long struct) Unsafe version ofbytes_transferred()
.static long
noffset
(long struct) Unsafe version ofoffset()
.static int
nresult
(long struct) Unsafe version ofresult()
.static int
ntype
(long struct) Unsafe version oftype()
.static long
nuserdata
(long struct) Unsafe version ofuserdata()
.long
offset()
int
result()
int
sizeof()
Returnssizeof(struct)
.int
type()
long
userdata()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.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. -
ASYNCIO
public static final int ASYNCIOThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
RESULT
public static final int RESULTThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
BYTES_REQUESTED
public static final int BYTES_REQUESTEDThe struct member offsets. -
BYTES_TRANSFERRED
public static final int BYTES_TRANSFERREDThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets.
-
-
Constructor Details
-
SDL_AsyncIOOutcome
Creates aSDL_AsyncIOOutcome
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SDL_AsyncIOOutcome>
-
asyncio
public long asyncio()- Returns:
- the value of the
asyncio
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
result
public int result()- Returns:
- the value of the
result
field.
-
buffer
- Returns:
- a
ByteBuffer
view of the data pointed to by thebuffer
field.
-
offset
public long offset()- Returns:
- the value of the
offset
field.
-
bytes_requested
public long bytes_requested()- Returns:
- the value of the
bytes_requested
field.
-
bytes_transferred
public long bytes_transferred()- Returns:
- the value of the
bytes_transferred
field.
-
userdata
public long userdata()- Returns:
- the value of the
userdata
field.
-
malloc
Returns a newSDL_AsyncIOOutcome
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_AsyncIOOutcome
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_AsyncIOOutcome
instance allocated withBufferUtils
. -
create
Returns a newSDL_AsyncIOOutcome
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_AsyncIOOutcome.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_AsyncIOOutcome
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_AsyncIOOutcome
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_AsyncIOOutcome.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nasyncio
public static long nasyncio(long struct) Unsafe version ofasyncio()
. -
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nresult
public static int nresult(long struct) Unsafe version ofresult()
. -
nbuffer
Unsafe version ofbuffer
. -
noffset
public static long noffset(long struct) Unsafe version ofoffset()
. -
nbytes_requested
public static long nbytes_requested(long struct) Unsafe version ofbytes_requested()
. -
nbytes_transferred
public static long nbytes_transferred(long struct) Unsafe version ofbytes_transferred()
. -
nuserdata
public static long nuserdata(long struct) Unsafe version ofuserdata()
.
-