Package org.lwjgl.fmod
Class FMOD_STUDIO_COMMAND_INFO
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_STUDIO_COMMAND_INFO
extends Struct<FMOD_STUDIO_COMMAND_INFO>
implements NativeResource
struct FMOD_STUDIO_COMMAND_INFO {
char const * commandname;
int parentcommandindex;
int framenumber;
float frametime;
FMOD_STUDIO_INSTANCETYPE instancetype;
FMOD_STUDIO_INSTANCETYPE outputtype;
unsigned int instancehandle;
unsigned int outputhandle;
}-
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 member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFMOD_STUDIO_COMMAND_INFO(ByteBuffer container) Creates aFMOD_STUDIO_COMMAND_INFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_COMMAND_INFOcalloc()Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_COMMAND_INFOcalloc(MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.commandname(ByteBuffer value) Sets the address of the specified encoded string to thecommandnamefield.static FMOD_STUDIO_COMMAND_INFOcreate()Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withBufferUtils.static FMOD_STUDIO_COMMAND_INFOcreate(long address) Returns a newFMOD_STUDIO_COMMAND_INFOinstance for the specified memory address.create(long address, int capacity) Create aFMOD_STUDIO_COMMAND_INFO.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_COMMAND_INFOcreateSafe(long address) static @Nullable FMOD_STUDIO_COMMAND_INFO.BuffercreateSafe(long address, int capacity) intframenumber(int value) Sets the specified value to theframenumberfield.floatframetime(float value) Sets the specified value to theframetimefield.intinstancehandle(int value) Sets the specified value to theinstancehandlefield.intinstancetype(int value) Sets the specified value to theinstancetypefield.static FMOD_STUDIO_COMMAND_INFOmalloc()Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_STUDIO_COMMAND_INFOmalloc(MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated on the specifiedMemoryStack.static ByteBufferncommandname(long struct) Unsafe version ofcommandname().static voidncommandname(long struct, ByteBuffer value) Unsafe version ofcommandname.static StringncommandnameString(long struct) Unsafe version ofcommandnameString().static intnframenumber(long struct) Unsafe version offramenumber().static voidnframenumber(long struct, int value) Unsafe version offramenumber.static floatnframetime(long struct) Unsafe version offrametime().static voidnframetime(long struct, float value) Unsafe version offrametime.static intninstancehandle(long struct) Unsafe version ofinstancehandle().static voidninstancehandle(long struct, int value) Unsafe version ofinstancehandle.static intninstancetype(long struct) Unsafe version ofinstancetype().static voidninstancetype(long struct, int value) Unsafe version ofinstancetype.static intnoutputhandle(long struct) Unsafe version ofoutputhandle().static voidnoutputhandle(long struct, int value) Unsafe version ofoutputhandle.static intnoutputtype(long struct) Unsafe version ofoutputtype().static voidnoutputtype(long struct, int value) Unsafe version ofoutputtype.static intnparentcommandindex(long struct) Unsafe version ofparentcommandindex().static voidnparentcommandindex(long struct, int value) Unsafe version ofparentcommandindex.intoutputhandle(int value) Sets the specified value to theoutputhandlefield.intoutputtype(int value) Sets the specified value to theoutputtypefield.intparentcommandindex(int value) Sets the specified value to theparentcommandindexfield.set(ByteBuffer commandname, int parentcommandindex, int framenumber, float frametime, int instancetype, int outputtype, int instancehandle, int outputhandle) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
COMMANDNAME
public static final int COMMANDNAMEThe struct member offsets. -
PARENTCOMMANDINDEX
public static final int PARENTCOMMANDINDEXThe struct member offsets. -
FRAMENUMBER
public static final int FRAMENUMBERThe struct member offsets. -
FRAMETIME
public static final int FRAMETIMEThe struct member offsets. -
INSTANCETYPE
public static final int INSTANCETYPEThe struct member offsets. -
OUTPUTTYPE
public static final int OUTPUTTYPEThe struct member offsets. -
INSTANCEHANDLE
public static final int INSTANCEHANDLEThe struct member offsets. -
OUTPUTHANDLE
public static final int OUTPUTHANDLEThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_COMMAND_INFO
Creates aFMOD_STUDIO_COMMAND_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_COMMAND_INFO>
-
commandname
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thecommandnamefield.
-
commandnameString
- Returns:
- the null-terminated string pointed to by the
commandnamefield.
-
parentcommandindex
public int parentcommandindex()- Returns:
- the value of the
parentcommandindexfield.
-
frametime
public float frametime()- Returns:
- the value of the
frametimefield.
-
instancetype
public int instancetype()- Returns:
- the value of the
instancetypefield.
-
outputtype
public int outputtype()- Returns:
- the value of the
outputtypefield.
-
instancehandle
public int instancehandle()- Returns:
- the value of the
instancehandlefield.
-
outputhandle
public int outputhandle()- Returns:
- the value of the
outputhandlefield.
-
commandname
Sets the address of the specified encoded string to thecommandnamefield. -
parentcommandindex
Sets the specified value to theparentcommandindexfield. -
frametime
Sets the specified value to theframetimefield. -
instancetype
Sets the specified value to theinstancetypefield. -
outputtype
Sets the specified value to theoutputtypefield. -
instancehandle
Sets the specified value to theinstancehandlefield. -
outputhandle
Sets the specified value to theoutputhandlefield. -
set
public FMOD_STUDIO_COMMAND_INFO set(ByteBuffer commandname, int parentcommandindex, int framenumber, float frametime, int instancetype, int outputtype, int instancehandle, int outputhandle) 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_COMMAND_INFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_COMMAND_INFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_COMMAND_INFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_COMMAND_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncommandname
Unsafe version ofcommandname(). -
ncommandnameString
Unsafe version ofcommandnameString(). -
nparentcommandindex
public static int nparentcommandindex(long struct) Unsafe version ofparentcommandindex(). -
nframetime
public static float nframetime(long struct) Unsafe version offrametime(). -
ninstancetype
public static int ninstancetype(long struct) Unsafe version ofinstancetype(). -
noutputtype
public static int noutputtype(long struct) Unsafe version ofoutputtype(). -
ninstancehandle
public static int ninstancehandle(long struct) Unsafe version ofinstancehandle(). -
noutputhandle
public static int noutputhandle(long struct) Unsafe version ofoutputhandle(). -
ncommandname
Unsafe version ofcommandname. -
nparentcommandindex
public static void nparentcommandindex(long struct, int value) Unsafe version ofparentcommandindex. -
nframetime
public static void nframetime(long struct, float value) Unsafe version offrametime. -
ninstancetype
public static void ninstancetype(long struct, int value) Unsafe version ofinstancetype. -
noutputtype
public static void noutputtype(long struct, int value) Unsafe version ofoutputtype. -
ninstancehandle
public static void ninstancehandle(long struct, int value) Unsafe version ofinstancehandle. -
noutputhandle
public static void noutputhandle(long struct, int value) Unsafe version ofoutputhandle. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-