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;
{@link FMOD_FILE_OPEN_CALLBACKI FMOD_FILE_OPEN_CALLBACK} opencallback;
{@link FMOD_FILE_CLOSE_CALLBACKI FMOD_FILE_CLOSE_CALLBACK} closecallback;
{@link FMOD_FILE_READ_CALLBACKI FMOD_FILE_READ_CALLBACK} readcallback;
{@link FMOD_FILE_SEEK_CALLBACKI FMOD_FILE_SEEK_CALLBACK} seekcallback;
}
-
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 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
ConstructorsConstructorDescriptionFMOD_STUDIO_BANK_INFO
(ByteBuffer container) Creates aFMOD_STUDIO_BANK_INFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_BANK_INFO
calloc()
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated withmemCalloc
.static FMOD_STUDIO_BANK_INFO.Buffer
calloc
(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withmemCalloc
.static FMOD_STUDIO_BANK_INFO.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_STUDIO_BANK_INFO
calloc
(MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.Sets the specified value to theclosecallback
field.static FMOD_STUDIO_BANK_INFO
create()
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated withBufferUtils
.static FMOD_STUDIO_BANK_INFO.Buffer
create
(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withBufferUtils
.static FMOD_STUDIO_BANK_INFO
create
(long address) Returns a newFMOD_STUDIO_BANK_INFO
instance for the specified memory address.static FMOD_STUDIO_BANK_INFO.Buffer
create
(long address, int capacity) Create aFMOD_STUDIO_BANK_INFO.Buffer
instance at the specified memory.static @Nullable FMOD_STUDIO_BANK_INFO
createSafe
(long address) static @Nullable FMOD_STUDIO_BANK_INFO.Buffer
createSafe
(long address, int capacity) static FMOD_STUDIO_BANK_INFO
malloc()
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated withmemAlloc
.static FMOD_STUDIO_BANK_INFO.Buffer
malloc
(int capacity) Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withmemAlloc
.static FMOD_STUDIO_BANK_INFO.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_STUDIO_BANK_INFO
malloc
(MemoryStack stack) Returns a newFMOD_STUDIO_BANK_INFO
instance allocated on the specifiedMemoryStack
.static FMOD_FILE_CLOSE_CALLBACK
nclosecallback
(long struct) Unsafe version ofclosecallback()
.static void
nclosecallback
(long struct, FMOD_FILE_CLOSE_CALLBACKI value) Unsafe version ofclosecallback
.static FMOD_FILE_OPEN_CALLBACK
nopencallback
(long struct) Unsafe version ofopencallback()
.static void
nopencallback
(long struct, FMOD_FILE_OPEN_CALLBACKI value) Unsafe version ofopencallback
.static FMOD_FILE_READ_CALLBACK
nreadcallback
(long struct) Unsafe version ofreadcallback()
.static void
nreadcallback
(long struct, FMOD_FILE_READ_CALLBACKI value) Unsafe version ofreadcallback
.static FMOD_FILE_SEEK_CALLBACK
nseekcallback
(long struct) Unsafe version ofseekcallback()
.static void
nseekcallback
(long struct, FMOD_FILE_SEEK_CALLBACKI value) Unsafe version ofseekcallback
.static int
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, int value) Unsafe version ofsize
.static @Nullable ByteBuffer
nuserdata
(long struct) Unsafe version ofuserdata
.static void
nuserdata
(long struct, @Nullable ByteBuffer value) Unsafe version ofuserdata
.static int
nuserdatalength
(long struct) Unsafe version ofuserdatalength()
.static void
nuserdatalength
(long struct, int value) Sets the specified value to theuserdatalength
field of the specifiedstruct
.Sets the specified value to theopencallback
field.Sets the specified value to thereadcallback
field.Sets the specified value to theseekcallback
field.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.int
size()
size
(int value) Sets the specified value to thesize
field.int
sizeof()
Returnssizeof(struct)
.@Nullable ByteBuffer
userdata()
userdata
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to theuserdata
field.int
userdatalength
(int value) Sets the specified value to theuserdatalength
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. -
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_INFO
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_STUDIO_BANK_INFO>
-
size
public int size()- Returns:
- the value of the
size
field.
-
userdata
- Returns:
- a
ByteBuffer
view of the data pointed to by theuserdata
field.
-
userdatalength
public int userdatalength()- Returns:
- the value of the
userdatalength
field.
-
opencallback
- Returns:
- the value of the
opencallback
field.
-
closecallback
- Returns:
- the value of the
closecallback
field.
-
readcallback
- Returns:
- the value of the
readcallback
field.
-
seekcallback
- Returns:
- the value of the
seekcallback
field.
-
size
Sets the specified value to thesize
field. -
userdata
Sets the address of the specifiedByteBuffer
to theuserdata
field. -
userdatalength
Sets the specified value to theuserdatalength
field. -
opencallback
Sets the specified value to theopencallback
field. -
closecallback
Sets the specified value to theclosecallback
field. -
readcallback
Sets the specified value to thereadcallback
field. -
seekcallback
Sets the specified value to theseekcallback
field. -
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_INFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_STUDIO_BANK_INFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_STUDIO_BANK_INFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_BANK_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_BANK_INFO.Buffer
instance allocated on the specifiedMemoryStack
and 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 theuserdatalength
field 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
-