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.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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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_INFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_COMMAND_INFO
calloc()
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_STUDIO_COMMAND_INFO
calloc
(MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.commandname
(ByteBuffer value) Sets the address of the specified encoded string to thecommandname
field.static FMOD_STUDIO_COMMAND_INFO
create()
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withBufferUtils
.static FMOD_STUDIO_COMMAND_INFO
create
(long address) Returns a newFMOD_STUDIO_COMMAND_INFO
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_STUDIO_COMMAND_INFO.Buffer
instance at the specified memory.static @Nullable FMOD_STUDIO_COMMAND_INFO
createSafe
(long address) static @Nullable FMOD_STUDIO_COMMAND_INFO.Buffer
createSafe
(long address, int capacity) int
framenumber
(int value) Sets the specified value to theframenumber
field.float
frametime
(float value) Sets the specified value to theframetime
field.int
instancehandle
(int value) Sets the specified value to theinstancehandle
field.int
instancetype
(int value) Sets the specified value to theinstancetype
field.static FMOD_STUDIO_COMMAND_INFO
malloc()
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_STUDIO_COMMAND_INFO
malloc
(MemoryStack stack) Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated on the specifiedMemoryStack
.static ByteBuffer
ncommandname
(long struct) Unsafe version ofcommandname()
.static void
ncommandname
(long struct, ByteBuffer value) Unsafe version ofcommandname
.static String
ncommandnameString
(long struct) Unsafe version ofcommandnameString()
.static int
nframenumber
(long struct) Unsafe version offramenumber()
.static void
nframenumber
(long struct, int value) Unsafe version offramenumber
.static float
nframetime
(long struct) Unsafe version offrametime()
.static void
nframetime
(long struct, float value) Unsafe version offrametime
.static int
ninstancehandle
(long struct) Unsafe version ofinstancehandle()
.static void
ninstancehandle
(long struct, int value) Unsafe version ofinstancehandle
.static int
ninstancetype
(long struct) Unsafe version ofinstancetype()
.static void
ninstancetype
(long struct, int value) Unsafe version ofinstancetype
.static int
noutputhandle
(long struct) Unsafe version ofoutputhandle()
.static void
noutputhandle
(long struct, int value) Unsafe version ofoutputhandle
.static int
noutputtype
(long struct) Unsafe version ofoutputtype()
.static void
noutputtype
(long struct, int value) Unsafe version ofoutputtype
.static int
nparentcommandindex
(long struct) Unsafe version ofparentcommandindex()
.static void
nparentcommandindex
(long struct, int value) Unsafe version ofparentcommandindex
.int
outputhandle
(int value) Sets the specified value to theoutputhandle
field.int
outputtype
(int value) Sets the specified value to theoutputtype
field.int
parentcommandindex
(int value) Sets the specified value to theparentcommandindex
field.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.int
sizeof()
Returnssizeof(struct)
.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. -
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_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_COMMAND_INFO>
-
commandname
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thecommandname
field.
-
commandnameString
- Returns:
- the null-terminated string pointed to by the
commandname
field.
-
parentcommandindex
public int parentcommandindex()- Returns:
- the value of the
parentcommandindex
field.
-
frametime
public float frametime()- Returns:
- the value of the
frametime
field.
-
instancetype
public int instancetype()- Returns:
- the value of the
instancetype
field.
-
outputtype
public int outputtype()- Returns:
- the value of the
outputtype
field.
-
instancehandle
public int instancehandle()- Returns:
- the value of the
instancehandle
field.
-
outputhandle
public int outputhandle()- Returns:
- the value of the
outputhandle
field.
-
commandname
Sets the address of the specified encoded string to thecommandname
field. -
parentcommandindex
Sets the specified value to theparentcommandindex
field. -
frametime
Sets the specified value to theframetime
field. -
instancetype
Sets the specified value to theinstancetype
field. -
outputtype
Sets the specified value to theoutputtype
field. -
instancehandle
Sets the specified value to theinstancehandle
field. -
outputhandle
Sets the specified value to theoutputhandle
field. -
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_INFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_STUDIO_COMMAND_INFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_STUDIO_COMMAND_INFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_STUDIO_COMMAND_INFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_COMMAND_INFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_COMMAND_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_COMMAND_INFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_COMMAND_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
-
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
-