Package org.lwjgl.fmod
Class FMOD_STUDIO_BANK_INFO
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_STUDIO_BANK_INFO {
int size;
void * userdata;
int userdatalength;
FMOD_FILE_OPEN_CALLBACK opencallback;
FMOD_FILE_CLOSE_CALLBACK closecallback;
FMOD_FILE_READ_CALLBACK readcallback;
FMOD_FILE_SEEK_CALLBACK seekcallback;
}-
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 size in bytes.static final intThe struct member offsets.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_STUDIO_BANK_INFO(ByteBuffer container) Creates aFMOD_STUDIO_BANK_INFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_BANK_INFOcalloc()Returns a newFMOD_STUDIO_BANK_INFOinstance allocated withmemCalloc.static FMOD_STUDIO_BANK_INFO.Buffercalloc(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withmemCalloc.static FMOD_STUDIO_BANK_INFO.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_BANK_INFOcalloc(MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Sets the specified value to theclosecallbackfield.static FMOD_STUDIO_BANK_INFOcreate()Returns a newFMOD_STUDIO_BANK_INFOinstance allocated withBufferUtils.static FMOD_STUDIO_BANK_INFO.Buffercreate(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withBufferUtils.static FMOD_STUDIO_BANK_INFOcreate(long address) Returns a newFMOD_STUDIO_BANK_INFOinstance for the specified memory address.static FMOD_STUDIO_BANK_INFO.Buffercreate(long address, int capacity) Create aFMOD_STUDIO_BANK_INFO.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_BANK_INFOcreateSafe(long address) static @Nullable FMOD_STUDIO_BANK_INFO.BuffercreateSafe(long address, int capacity) static FMOD_STUDIO_BANK_INFOmalloc()Returns a newFMOD_STUDIO_BANK_INFOinstance allocated withmemAlloc.static FMOD_STUDIO_BANK_INFO.Buffermalloc(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withmemAlloc.static FMOD_STUDIO_BANK_INFO.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_STUDIO_BANK_INFOmalloc(MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFOinstance allocated on the specifiedMemoryStack.static FMOD_FILE_CLOSE_CALLBACKnclosecallback(long struct) Unsafe version ofclosecallback().static voidnclosecallback(long struct, FMOD_FILE_CLOSE_CALLBACKI value) Unsafe version ofclosecallback.static FMOD_FILE_OPEN_CALLBACKnopencallback(long struct) Unsafe version ofopencallback().static voidnopencallback(long struct, FMOD_FILE_OPEN_CALLBACKI value) Unsafe version ofopencallback.static FMOD_FILE_READ_CALLBACKnreadcallback(long struct) Unsafe version ofreadcallback().static voidnreadcallback(long struct, FMOD_FILE_READ_CALLBACKI value) Unsafe version ofreadcallback.static FMOD_FILE_SEEK_CALLBACKnseekcallback(long struct) Unsafe version ofseekcallback().static voidnseekcallback(long struct, FMOD_FILE_SEEK_CALLBACKI value) Unsafe version ofseekcallback.static intnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, int value) Unsafe version ofsize.static @Nullable ByteBuffernuserdata(long struct) Unsafe version ofuserdata.static voidnuserdata(long struct, @Nullable ByteBuffer value) Unsafe version ofuserdata.static intnuserdatalength(long struct) Unsafe version ofuserdatalength().static voidnuserdatalength(long struct, int value) Sets the specified value to theuserdatalengthfield of the specifiedstruct.Sets the specified value to theopencallbackfield.Sets the specified value to thereadcallbackfield.Sets the specified value to theseekcallbackfield.set(int size, @Nullable ByteBuffer userdata, int userdatalength, FMOD_FILE_OPEN_CALLBACKI opencallback, FMOD_FILE_CLOSE_CALLBACKI closecallback, FMOD_FILE_READ_CALLBACKI readcallback, FMOD_FILE_SEEK_CALLBACKI seekcallback) Initializes this struct with the specified values.set(FMOD_STUDIO_BANK_INFO src) Copies the specified struct data to this struct.intsize()size(int value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).@Nullable ByteBufferuserdata()userdata(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto theuserdatafield.intuserdatalength(int value) Sets the specified value to theuserdatalengthfield.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. -
SIZE
public static final int SIZEThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets. -
USERDATALENGTH
public static final int USERDATALENGTHThe struct member offsets. -
OPENCALLBACK
public static final int OPENCALLBACKThe struct member offsets. -
CLOSECALLBACK
public static final int CLOSECALLBACKThe struct member offsets. -
READCALLBACK
public static final int READCALLBACKThe struct member offsets. -
SEEKCALLBACK
public static final int SEEKCALLBACKThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_BANK_INFO
Creates aFMOD_STUDIO_BANK_INFOinstance 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_STUDIO_BANK_INFO>
-
size
public int size()- Returns:
- the value of the
sizefield.
-
userdata
- Returns:
- a
ByteBufferview of the data pointed to by theuserdatafield.
-
userdatalength
public int userdatalength()- Returns:
- the value of the
userdatalengthfield.
-
opencallback
- Returns:
- the value of the
opencallbackfield.
-
closecallback
- Returns:
- the value of the
closecallbackfield.
-
readcallback
- Returns:
- the value of the
readcallbackfield.
-
seekcallback
- Returns:
- the value of the
seekcallbackfield.
-
size
Sets the specified value to thesizefield. -
userdata
Sets the address of the specifiedByteBufferto theuserdatafield. -
userdatalength
Sets the specified value to theuserdatalengthfield. -
opencallback
Sets the specified value to theopencallbackfield. -
closecallback
Sets the specified value to theclosecallbackfield. -
readcallback
Sets the specified value to thereadcallbackfield. -
seekcallback
Sets the specified value to theseekcallbackfield. -
set
public FMOD_STUDIO_BANK_INFO set(int size, @Nullable ByteBuffer userdata, int userdatalength, FMOD_FILE_OPEN_CALLBACKI opencallback, FMOD_FILE_CLOSE_CALLBACKI closecallback, FMOD_FILE_READ_CALLBACKI readcallback, FMOD_FILE_SEEK_CALLBACKI seekcallback) 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_STUDIO_BANK_INFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_BANK_INFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_BANK_INFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_BANK_INFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_BANK_INFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_BANK_INFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_BANK_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_BANK_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsize
public static int nsize(long struct) Unsafe version ofsize(). -
nuserdata
Unsafe version ofuserdata. -
nuserdatalength
public static int nuserdatalength(long struct) Unsafe version ofuserdatalength(). -
nopencallback
Unsafe version ofopencallback(). -
nclosecallback
Unsafe version ofclosecallback(). -
nreadcallback
Unsafe version ofreadcallback(). -
nseekcallback
Unsafe version ofseekcallback(). -
nsize
public static void nsize(long struct, int value) Unsafe version ofsize. -
nuserdata
Unsafe version ofuserdata. -
nuserdatalength
public static void nuserdatalength(long struct, int value) Sets the specified value to theuserdatalengthfield of the specifiedstruct. -
nopencallback
Unsafe version ofopencallback. -
nclosecallback
Unsafe version ofclosecallback. -
nreadcallback
Unsafe version ofreadcallback. -
nseekcallback
Unsafe version ofseekcallback. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-