Package org.lwjgl.fmod
Class FMOD_ASYNCREADINFO
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_ASYNCREADINFO {
void * handle;
unsigned int offset;
unsigned int sizebytes;
int priority;
void * userdata;
void * buffer;
unsigned int bytesread;
{@link FMOD_FILE_ASYNCDONE_FUNCI FMOD_FILE_ASYNCDONE_FUNC} done;
}
-
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 member offsets.static final int
The struct size in bytes.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
ConstructorsConstructorDescriptionFMOD_ASYNCREADINFO
(ByteBuffer container) Creates aFMOD_ASYNCREADINFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()
buffer
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thebuffer
field.int
static FMOD_ASYNCREADINFO
calloc()
Returns a newFMOD_ASYNCREADINFO
instance allocated withmemCalloc
.static FMOD_ASYNCREADINFO.Buffer
calloc
(int capacity) Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withmemCalloc
.static FMOD_ASYNCREADINFO.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_ASYNCREADINFO
calloc
(MemoryStack stack) Returns a newFMOD_ASYNCREADINFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_ASYNCREADINFO
create()
Returns a newFMOD_ASYNCREADINFO
instance allocated withBufferUtils
.static FMOD_ASYNCREADINFO.Buffer
create
(int capacity) Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withBufferUtils
.static FMOD_ASYNCREADINFO
create
(long address) Returns a newFMOD_ASYNCREADINFO
instance for the specified memory address.static FMOD_ASYNCREADINFO.Buffer
create
(long address, int capacity) Create aFMOD_ASYNCREADINFO.Buffer
instance at the specified memory.static @Nullable FMOD_ASYNCREADINFO
createSafe
(long address) static @Nullable FMOD_ASYNCREADINFO.Buffer
createSafe
(long address, int capacity) done()
done
(FMOD_FILE_ASYNCDONE_FUNCI value) Sets the specified value to thedone
field.long
handle()
handle
(long value) Sets the specified value to thehandle
field.static FMOD_ASYNCREADINFO
malloc()
Returns a newFMOD_ASYNCREADINFO
instance allocated withmemAlloc
.static FMOD_ASYNCREADINFO.Buffer
malloc
(int capacity) Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withmemAlloc
.static FMOD_ASYNCREADINFO.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_ASYNCREADINFO
malloc
(MemoryStack stack) Returns a newFMOD_ASYNCREADINFO
instance allocated on the specifiedMemoryStack
.static ByteBuffer
nbuffer
(long struct) Unsafe version ofbuffer
.static void
nbuffer
(long struct, ByteBuffer value) Unsafe version ofbuffer
.static int
nbytesread
(long struct) Unsafe version ofbytesread()
.static void
nbytesread
(long struct, int value) Sets the specified value to thebytesread
field of the specifiedstruct
.static FMOD_FILE_ASYNCDONE_FUNC
ndone
(long struct) Unsafe version ofdone()
.static void
ndone
(long struct, FMOD_FILE_ASYNCDONE_FUNCI value) Unsafe version ofdone
.static long
nhandle
(long struct) Unsafe version ofhandle()
.static void
nhandle
(long struct, long value) Unsafe version ofhandle
.static int
noffset
(long struct) Unsafe version ofoffset()
.static void
noffset
(long struct, int value) Unsafe version ofoffset
.static int
npriority
(long struct) Unsafe version ofpriority()
.static void
npriority
(long struct, int value) Unsafe version ofpriority
.static int
nsizebytes
(long struct) Unsafe version ofsizebytes()
.static void
nsizebytes
(long struct, int value) Unsafe version ofsizebytes
.static long
nuserdata
(long struct) Unsafe version ofuserdata()
.static void
nuserdata
(long struct, long value) Unsafe version ofuserdata
.int
offset()
offset
(int value) Sets the specified value to theoffset
field.int
priority()
priority
(int value) Sets the specified value to thepriority
field.set
(long handle, int offset, int sizebytes, int priority, long userdata, ByteBuffer buffer, FMOD_FILE_ASYNCDONE_FUNCI done) Initializes this struct with the specified values.set
(FMOD_ASYNCREADINFO src) Copies the specified struct data to this struct.int
sizebytes
(int value) Sets the specified value to thesizebytes
field.int
sizeof()
Returnssizeof(struct)
.long
userdata()
userdata
(long value) Sets the specified value to theuserdata
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
HANDLE
public static final int HANDLEThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
SIZEBYTES
public static final int SIZEBYTESThe struct member offsets. -
PRIORITY
public static final int PRIORITYThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
BYTESREAD
public static final int BYTESREADThe struct member offsets. -
DONE
public static final int DONEThe struct member offsets.
-
-
Constructor Details
-
FMOD_ASYNCREADINFO
Creates aFMOD_ASYNCREADINFO
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<FMOD_ASYNCREADINFO>
-
handle
public long handle()- Returns:
- the value of the
handle
field.
-
offset
public int offset()- Returns:
- the value of the
offset
field.
-
sizebytes
public int sizebytes()- Returns:
- the value of the
sizebytes
field.
-
priority
public int priority()- Returns:
- the value of the
priority
field.
-
userdata
public long userdata()- Returns:
- the value of the
userdata
field.
-
buffer
- Returns:
- a
ByteBuffer
view of the data pointed to by thebuffer
field.
-
bytesread
public int bytesread()- Returns:
- the value of the
bytesread
field.
-
done
- Returns:
- the value of the
done
field.
-
handle
Sets the specified value to thehandle
field. -
offset
Sets the specified value to theoffset
field. -
sizebytes
Sets the specified value to thesizebytes
field. -
priority
Sets the specified value to thepriority
field. -
userdata
Sets the specified value to theuserdata
field. -
buffer
Sets the address of the specifiedByteBuffer
to thebuffer
field. -
done
Sets the specified value to thedone
field. -
set
public FMOD_ASYNCREADINFO set(long handle, int offset, int sizebytes, int priority, long userdata, ByteBuffer buffer, FMOD_FILE_ASYNCDONE_FUNCI done) 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 newFMOD_ASYNCREADINFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_ASYNCREADINFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_ASYNCREADINFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_ASYNCREADINFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_ASYNCREADINFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_ASYNCREADINFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_ASYNCREADINFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_ASYNCREADINFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nhandle
public static long nhandle(long struct) Unsafe version ofhandle()
. -
noffset
public static int noffset(long struct) Unsafe version ofoffset()
. -
nsizebytes
public static int nsizebytes(long struct) Unsafe version ofsizebytes()
. -
npriority
public static int npriority(long struct) Unsafe version ofpriority()
. -
nuserdata
public static long nuserdata(long struct) Unsafe version ofuserdata()
. -
nbuffer
Unsafe version ofbuffer
. -
nbytesread
public static int nbytesread(long struct) Unsafe version ofbytesread()
. -
ndone
Unsafe version ofdone()
. -
nhandle
public static void nhandle(long struct, long value) Unsafe version ofhandle
. -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset
. -
nsizebytes
public static void nsizebytes(long struct, int value) Unsafe version ofsizebytes
. -
npriority
public static void npriority(long struct, int value) Unsafe version ofpriority
. -
nuserdata
public static void nuserdata(long struct, long value) Unsafe version ofuserdata
. -
nbuffer
Unsafe version ofbuffer
. -
nbytesread
public static void nbytesread(long struct, int value) Sets the specified value to thebytesread
field of the specifiedstruct
. -
ndone
Unsafe version ofdone
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-