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;
FMOD_FILE_ASYNCDONE_FUNC done;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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_ASYNCREADINFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()buffer(ByteBuffer value) Sets the address of the specifiedByteBufferto thebufferfield.intstatic FMOD_ASYNCREADINFOcalloc()Returns a newFMOD_ASYNCREADINFOinstance allocated withmemCalloc.static FMOD_ASYNCREADINFO.Buffercalloc(int capacity) Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withmemCalloc.static FMOD_ASYNCREADINFO.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_ASYNCREADINFOcalloc(MemoryStack stack) Returns a newFMOD_ASYNCREADINFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_ASYNCREADINFOcreate()Returns a newFMOD_ASYNCREADINFOinstance allocated withBufferUtils.static FMOD_ASYNCREADINFO.Buffercreate(int capacity) Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withBufferUtils.static FMOD_ASYNCREADINFOcreate(long address) Returns a newFMOD_ASYNCREADINFOinstance for the specified memory address.static FMOD_ASYNCREADINFO.Buffercreate(long address, int capacity) Create aFMOD_ASYNCREADINFO.Bufferinstance at the specified memory.static @Nullable FMOD_ASYNCREADINFOcreateSafe(long address) static @Nullable FMOD_ASYNCREADINFO.BuffercreateSafe(long address, int capacity) done()done(FMOD_FILE_ASYNCDONE_FUNCI value) Sets the specified value to thedonefield.longhandle()handle(long value) Sets the specified value to thehandlefield.static FMOD_ASYNCREADINFOmalloc()Returns a newFMOD_ASYNCREADINFOinstance allocated withmemAlloc.static FMOD_ASYNCREADINFO.Buffermalloc(int capacity) Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withmemAlloc.static FMOD_ASYNCREADINFO.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_ASYNCREADINFOmalloc(MemoryStack stack) Returns a newFMOD_ASYNCREADINFOinstance allocated on the specifiedMemoryStack.static ByteBuffernbuffer(long struct) Unsafe version ofbuffer.static voidnbuffer(long struct, ByteBuffer value) Unsafe version ofbuffer.static intnbytesread(long struct) Unsafe version ofbytesread().static voidnbytesread(long struct, int value) Sets the specified value to thebytesreadfield of the specifiedstruct.static FMOD_FILE_ASYNCDONE_FUNCndone(long struct) Unsafe version ofdone().static voidndone(long struct, FMOD_FILE_ASYNCDONE_FUNCI value) Unsafe version ofdone.static longnhandle(long struct) Unsafe version ofhandle().static voidnhandle(long struct, long value) Unsafe version ofhandle.static intnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, int value) Unsafe version ofoffset.static intnpriority(long struct) Unsafe version ofpriority().static voidnpriority(long struct, int value) Unsafe version ofpriority.static intnsizebytes(long struct) Unsafe version ofsizebytes().static voidnsizebytes(long struct, int value) Unsafe version ofsizebytes.static longnuserdata(long struct) Unsafe version ofuserdata().static voidnuserdata(long struct, long value) Unsafe version ofuserdata.intoffset()offset(int value) Sets the specified value to theoffsetfield.intpriority()priority(int value) Sets the specified value to thepriorityfield.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.intsizebytes(int value) Sets the specified value to thesizebytesfield.intsizeof()Returnssizeof(struct).longuserdata()userdata(long value) Sets the specified value to theuserdatafield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_ASYNCREADINFOinstance 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<FMOD_ASYNCREADINFO>
-
handle
public long handle()- Returns:
- the value of the
handlefield.
-
offset
public int offset()- Returns:
- the value of the
offsetfield.
-
sizebytes
public int sizebytes()- Returns:
- the value of the
sizebytesfield.
-
priority
public int priority()- Returns:
- the value of the
priorityfield.
-
userdata
public long userdata()- Returns:
- the value of the
userdatafield.
-
buffer
- Returns:
- a
ByteBufferview of the data pointed to by thebufferfield.
-
bytesread
public int bytesread()- Returns:
- the value of the
bytesreadfield.
-
done
- Returns:
- the value of the
donefield.
-
handle
Sets the specified value to thehandlefield. -
offset
Sets the specified value to theoffsetfield. -
sizebytes
Sets the specified value to thesizebytesfield. -
priority
Sets the specified value to thepriorityfield. -
userdata
Sets the specified value to theuserdatafield. -
buffer
Sets the address of the specifiedByteBufferto thebufferfield. -
done
Sets the specified value to thedonefield. -
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_ASYNCREADINFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_ASYNCREADINFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_ASYNCREADINFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_ASYNCREADINFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_ASYNCREADINFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_ASYNCREADINFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_ASYNCREADINFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_ASYNCREADINFO.Bufferinstance allocated on the specifiedMemoryStackand 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 thebytesreadfield 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
-