Package org.lwjgl.fmod
Class FMOD_DSP_PARAMETER_DESC
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_DSP_PARAMETER_DESC
extends Struct<FMOD_DSP_PARAMETER_DESC>
implements NativeResource
struct FMOD_DSP_PARAMETER_DESC {
FMOD_DSP_PARAMETER_TYPE type;
char name[16];
char label[16];
char const * description;
union {
FMOD_DSP_PARAMETER_DESC_FLOAT floatdesc;
FMOD_DSP_PARAMETER_DESC_INT intdesc;
FMOD_DSP_PARAMETER_DESC_BOOL booldesc;
FMOD_DSP_PARAMETER_DESC_DATA datadesc;
};
}-
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 size in bytes.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_DSP_PARAMETER_DESC(ByteBuffer container) Creates aFMOD_DSP_PARAMETER_DESCinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooldesc()booldesc(Consumer<FMOD_DSP_PARAMETER_DESC_BOOL> consumer) Passes thebooldescfield to the specifiedConsumer.Copies the specifiedFMOD_DSP_PARAMETER_DESC_BOOLto thebooldescfield.static FMOD_DSP_PARAMETER_DESCcalloc()Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_PARAMETER_DESCcalloc(MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_PARAMETER_DESCcreate()Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withBufferUtils.static FMOD_DSP_PARAMETER_DESCcreate(long address) Returns a newFMOD_DSP_PARAMETER_DESCinstance for the specified memory address.create(long address, int capacity) Create aFMOD_DSP_PARAMETER_DESC.Bufferinstance at the specified memory.static @Nullable FMOD_DSP_PARAMETER_DESCcreateSafe(long address) static @Nullable FMOD_DSP_PARAMETER_DESC.BuffercreateSafe(long address, int capacity) datadesc()datadesc(Consumer<FMOD_DSP_PARAMETER_DESC_DATA> consumer) Passes thedatadescfield to the specifiedConsumer.Copies the specifiedFMOD_DSP_PARAMETER_DESC_DATAto thedatadescfield.description(ByteBuffer value) Sets the address of the specified encoded string to thedescriptionfield.floatdesc(Consumer<FMOD_DSP_PARAMETER_DESC_FLOAT> consumer) Passes thefloatdescfield to the specifiedConsumer.Copies the specifiedFMOD_DSP_PARAMETER_DESC_FLOATto thefloatdescfield.intdesc()intdesc(Consumer<FMOD_DSP_PARAMETER_DESC_INT> consumer) Passes theintdescfield to the specifiedConsumer.Copies the specifiedFMOD_DSP_PARAMETER_DESC_INTto theintdescfield.label()bytelabel(int index) label(int index, byte value) Sets the specified value at the specified index of thelabelfield.label(ByteBuffer value) Copies the specifiedByteBufferto thelabelfield.static FMOD_DSP_PARAMETER_DESCmalloc()Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_DSP_PARAMETER_DESCmalloc(MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated on the specifiedMemoryStack.name()bytename(int index) name(int index, byte value) Sets the specified value at the specified index of thenamefield.name(ByteBuffer value) Copies the specifiedByteBufferto thenamefield.static FMOD_DSP_PARAMETER_DESC_BOOLnbooldesc(long struct) Unsafe version ofbooldesc().static voidnbooldesc(long struct, FMOD_DSP_PARAMETER_DESC_BOOL value) Unsafe version ofbooldesc.static FMOD_DSP_PARAMETER_DESC_DATAndatadesc(long struct) Unsafe version ofdatadesc().static voidndatadesc(long struct, FMOD_DSP_PARAMETER_DESC_DATA value) Unsafe version ofdatadesc.static ByteBufferndescription(long struct) Unsafe version ofdescription().static voidndescription(long struct, ByteBuffer value) Unsafe version ofdescription.static StringndescriptionString(long struct) Unsafe version ofdescriptionString().nfloatdesc(long struct) Unsafe version offloatdesc().static voidnfloatdesc(long struct, FMOD_DSP_PARAMETER_DESC_FLOAT value) Unsafe version offloatdesc.static FMOD_DSP_PARAMETER_DESC_INTnintdesc(long struct) Unsafe version ofintdesc().static voidnintdesc(long struct, FMOD_DSP_PARAMETER_DESC_INT value) Unsafe version ofintdesc.static ByteBuffernlabel(long struct) Unsafe version oflabel().static bytenlabel(long struct, int index) Unsafe version oflabel.static voidnlabel(long struct, int index, byte value) Unsafe version oflabel.static voidnlabel(long struct, ByteBuffer value) Unsafe version oflabel.static ByteBuffernname(long struct) Unsafe version ofname().static bytenname(long struct, int index) Unsafe version ofname.static voidnname(long struct, int index, byte value) Unsafe version ofname.static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.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. -
TYPE
public static final int TYPEThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
LABEL
public static final int LABELThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
FLOATDESC
public static final int FLOATDESCThe struct member offsets. -
INTDESC
public static final int INTDESCThe struct member offsets. -
BOOLDESC
public static final int BOOLDESCThe struct member offsets. -
DATADESC
public static final int DATADESCThe struct member offsets.
-
-
Constructor Details
-
FMOD_DSP_PARAMETER_DESC
Creates aFMOD_DSP_PARAMETER_DESCinstance 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_DSP_PARAMETER_DESC>
-
type
public int type()- Returns:
- the value of the
typefield.
-
name
- Returns:
- a
ByteBufferview of thenamefield.
-
name
public byte name(int index) - Returns:
- the value at the specified index of the
namefield.
-
label
- Returns:
- a
ByteBufferview of thelabelfield.
-
label
public byte label(int index) - Returns:
- the value at the specified index of the
labelfield.
-
description
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thedescriptionfield.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
descriptionfield.
-
floatdesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_FLOATview of thefloatdescfield.
-
intdesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_INTview of theintdescfield.
-
booldesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_BOOLview of thebooldescfield.
-
datadesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_DATAview of thedatadescfield.
-
type
Sets the specified value to thetypefield. -
name
Copies the specifiedByteBufferto thenamefield. -
name
Sets the specified value at the specified index of thenamefield. -
label
Copies the specifiedByteBufferto thelabelfield. -
label
Sets the specified value at the specified index of thelabelfield. -
description
Sets the address of the specified encoded string to thedescriptionfield. -
floatdesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_FLOATto thefloatdescfield. -
floatdesc
Passes thefloatdescfield to the specifiedConsumer. -
intdesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_INTto theintdescfield. -
intdesc
Passes theintdescfield to the specifiedConsumer. -
booldesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_BOOLto thebooldescfield. -
booldesc
Passes thebooldescfield to the specifiedConsumer. -
datadesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_DATAto thedatadescfield. -
datadesc
Passes thedatadescfield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated withBufferUtils. -
create
Returns a newFMOD_DSP_PARAMETER_DESCinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_DSP_PARAMETER_DESC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nname
Unsafe version ofname(). -
nname
public static byte nname(long struct, int index) Unsafe version ofname. -
nlabel
Unsafe version oflabel(). -
nlabel
public static byte nlabel(long struct, int index) Unsafe version oflabel. -
ndescription
Unsafe version ofdescription(). -
ndescriptionString
Unsafe version ofdescriptionString(). -
nfloatdesc
Unsafe version offloatdesc(). -
nintdesc
Unsafe version ofintdesc(). -
nbooldesc
Unsafe version ofbooldesc(). -
ndatadesc
Unsafe version ofdatadesc(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nname
Unsafe version ofname. -
nname
public static void nname(long struct, int index, byte value) Unsafe version ofname. -
nlabel
Unsafe version oflabel. -
nlabel
public static void nlabel(long struct, int index, byte value) Unsafe version oflabel. -
ndescription
Unsafe version ofdescription. -
nfloatdesc
Unsafe version offloatdesc. -
nintdesc
Unsafe version ofintdesc. -
nbooldesc
Unsafe version ofbooldesc. -
ndatadesc
Unsafe version ofdatadesc. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-