Package org.lwjgl.fmod
Class FSBANK_PROGRESSITEM
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FSBANK_PROGRESSITEM {
int subSoundIndex;
int threadIndex;
FSBANK_STATE state;
void const * stateData;
}-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFSBANK_PROGRESSITEM(ByteBuffer container) Creates aFSBANK_PROGRESSITEMinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FSBANK_PROGRESSITEMcalloc()Returns a newFSBANK_PROGRESSITEMinstance allocated withmemCalloc.static FSBANK_PROGRESSITEM.Buffercalloc(int capacity) Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withmemCalloc.static FSBANK_PROGRESSITEM.Buffercalloc(int capacity, MemoryStack stack) Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_PROGRESSITEMcalloc(MemoryStack stack) Returns a newFSBANK_PROGRESSITEMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_PROGRESSITEMcreate()Returns a newFSBANK_PROGRESSITEMinstance allocated withBufferUtils.static FSBANK_PROGRESSITEM.Buffercreate(int capacity) Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withBufferUtils.static FSBANK_PROGRESSITEMcreate(long address) Returns a newFSBANK_PROGRESSITEMinstance for the specified memory address.static FSBANK_PROGRESSITEM.Buffercreate(long address, int capacity) Create aFSBANK_PROGRESSITEM.Bufferinstance at the specified memory.static @Nullable FSBANK_PROGRESSITEMcreateSafe(long address) static @Nullable FSBANK_PROGRESSITEM.BuffercreateSafe(long address, int capacity) static FSBANK_PROGRESSITEMmalloc()Returns a newFSBANK_PROGRESSITEMinstance allocated withmemAlloc.static FSBANK_PROGRESSITEM.Buffermalloc(int capacity) Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withmemAlloc.static FSBANK_PROGRESSITEM.Buffermalloc(int capacity, MemoryStack stack) Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated on the specifiedMemoryStack.static FSBANK_PROGRESSITEMmalloc(MemoryStack stack) Returns a newFSBANK_PROGRESSITEMinstance allocated on the specifiedMemoryStack.static intnstate(long struct) Unsafe version ofstate().static voidnstate(long struct, int value) Unsafe version ofstate.static longnstateData(long struct) Unsafe version ofstateData().static voidnstateData(long struct, long value) Unsafe version ofstateData.static intnsubSoundIndex(long struct) Unsafe version ofsubSoundIndex().static voidnsubSoundIndex(long struct, int value) Unsafe version ofsubSoundIndex.static intnthreadIndex(long struct) Unsafe version ofthreadIndex().static voidnthreadIndex(long struct, int value) Unsafe version ofthreadIndex.set(int subSoundIndex, int threadIndex, int state, long stateData) Initializes this struct with the specified values.set(FSBANK_PROGRESSITEM src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstate()state(int value) Sets the specified value to thestatefield.longstateData(long value) Sets the specified value to thestateDatafield.intsubSoundIndex(int value) Sets the specified value to thesubSoundIndexfield.intthreadIndex(int value) Sets the specified value to thethreadIndexfield.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. -
SUBSOUNDINDEX
public static final int SUBSOUNDINDEXThe struct member offsets. -
THREADINDEX
public static final int THREADINDEXThe struct member offsets. -
STATE
public static final int STATEThe struct member offsets. -
STATEDATA
public static final int STATEDATAThe struct member offsets.
-
-
Constructor Details
-
FSBANK_PROGRESSITEM
Creates aFSBANK_PROGRESSITEMinstance 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<FSBANK_PROGRESSITEM>
-
subSoundIndex
public int subSoundIndex()- Returns:
- the value of the
subSoundIndexfield.
-
threadIndex
public int threadIndex()- Returns:
- the value of the
threadIndexfield.
-
state
public int state()- Returns:
- the value of the
statefield.
-
stateData
public long stateData()- Returns:
- the value of the
stateDatafield.
-
subSoundIndex
Sets the specified value to thesubSoundIndexfield. -
threadIndex
Sets the specified value to thethreadIndexfield. -
state
Sets the specified value to thestatefield. -
stateData
Sets the specified value to thestateDatafield. -
set
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 newFSBANK_PROGRESSITEMinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFSBANK_PROGRESSITEMinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFSBANK_PROGRESSITEMinstance allocated withBufferUtils. -
create
Returns a newFSBANK_PROGRESSITEMinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFSBANK_PROGRESSITEM.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFSBANK_PROGRESSITEMinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFSBANK_PROGRESSITEMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFSBANK_PROGRESSITEM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsubSoundIndex
public static int nsubSoundIndex(long struct) Unsafe version ofsubSoundIndex(). -
nthreadIndex
public static int nthreadIndex(long struct) Unsafe version ofthreadIndex(). -
nstate
public static int nstate(long struct) Unsafe version ofstate(). -
nstateData
public static long nstateData(long struct) Unsafe version ofstateData(). -
nsubSoundIndex
public static void nsubSoundIndex(long struct, int value) Unsafe version ofsubSoundIndex. -
nthreadIndex
public static void nthreadIndex(long struct, int value) Unsafe version ofthreadIndex. -
nstate
public static void nstate(long struct, int value) Unsafe version ofstate. -
nstateData
public static void nstateData(long struct, long value) Unsafe version ofstateData.
-