Package org.lwjgl.fmod
Class FMOD_STUDIO_USER_PROPERTY
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_STUDIO_USER_PROPERTY
extends Struct<FMOD_STUDIO_USER_PROPERTY>
implements NativeResource
struct FMOD_STUDIO_USER_PROPERTY {
char const * name;
FMOD_STUDIO_USER_PROPERTY_TYPE type;
union {
int intvalue;
FMOD_BOOL boolvalue;
float floatvalue;
char const * stringvalue;
};
}-
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 size in bytes.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
ConstructorsConstructorDescriptionFMOD_STUDIO_USER_PROPERTY(ByteBuffer container) Creates aFMOD_STUDIO_USER_PROPERTYinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintboolvalue(int value) Sets the specified value to theboolvaluefield.static FMOD_STUDIO_USER_PROPERTYcalloc()Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_USER_PROPERTYcalloc(MemoryStack stack) Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_USER_PROPERTYcreate()Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withBufferUtils.static FMOD_STUDIO_USER_PROPERTYcreate(long address) Returns a newFMOD_STUDIO_USER_PROPERTYinstance for the specified memory address.create(long address, int capacity) Create aFMOD_STUDIO_USER_PROPERTY.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_USER_PROPERTYcreateSafe(long address) static @Nullable FMOD_STUDIO_USER_PROPERTY.BuffercreateSafe(long address, int capacity) floatfloatvalue(float value) Sets the specified value to thefloatvaluefield.intintvalue()intvalue(int value) Sets the specified value to theintvaluefield.static FMOD_STUDIO_USER_PROPERTYmalloc()Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_STUDIO_USER_PROPERTYmalloc(MemoryStack stack) Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static intnboolvalue(long struct) Unsafe version ofboolvalue().static voidnboolvalue(long struct, int value) Unsafe version ofboolvalue.static floatnfloatvalue(long struct) Unsafe version offloatvalue().static voidnfloatvalue(long struct, float value) Unsafe version offloatvalue.static intnintvalue(long struct) Unsafe version ofintvalue().static voidnintvalue(long struct, int value) Unsafe version ofintvalue.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static @Nullable ByteBuffernstringvalue(long struct) Unsafe version ofstringvalue().static voidnstringvalue(long struct, @Nullable ByteBuffer value) Unsafe version ofstringvalue.static @Nullable StringnstringvalueString(long struct) Unsafe version ofstringvalueString().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).@Nullable ByteBufferstringvalue(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thestringvaluefield.@Nullable Stringinttype()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. -
NAME
public static final int NAMEThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
INTVALUE
public static final int INTVALUEThe struct member offsets. -
BOOLVALUE
public static final int BOOLVALUEThe struct member offsets. -
FLOATVALUE
public static final int FLOATVALUEThe struct member offsets. -
STRINGVALUE
public static final int STRINGVALUEThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_USER_PROPERTY
Creates aFMOD_STUDIO_USER_PROPERTYinstance 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_USER_PROPERTY>
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
intvalue
public int intvalue()- Returns:
- the value of the
intvaluefield.
-
boolvalue
public int boolvalue()- Returns:
- the value of the
boolvaluefield.
-
floatvalue
public float floatvalue()- Returns:
- the value of the
floatvaluefield.
-
stringvalue
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thestringvaluefield.
-
stringvalueString
- Returns:
- the null-terminated string pointed to by the
stringvaluefield.
-
name
Sets the address of the specified encoded string to thenamefield. -
type
Sets the specified value to thetypefield. -
intvalue
Sets the specified value to theintvaluefield. -
boolvalue
Sets the specified value to theboolvaluefield. -
floatvalue
Sets the specified value to thefloatvaluefield. -
stringvalue
Sets the address of the specified encoded string to thestringvaluefield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_USER_PROPERTYinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_USER_PROPERTY.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_USER_PROPERTYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_USER_PROPERTY.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nintvalue
public static int nintvalue(long struct) Unsafe version ofintvalue(). -
nboolvalue
public static int nboolvalue(long struct) Unsafe version ofboolvalue(). -
nfloatvalue
public static float nfloatvalue(long struct) Unsafe version offloatvalue(). -
nstringvalue
Unsafe version ofstringvalue(). -
nstringvalueString
Unsafe version ofstringvalueString(). -
nname
Unsafe version ofname. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nintvalue
public static void nintvalue(long struct, int value) Unsafe version ofintvalue. -
nboolvalue
public static void nboolvalue(long struct, int value) Unsafe version ofboolvalue. -
nfloatvalue
public static void nfloatvalue(long struct, float value) Unsafe version offloatvalue. -
nstringvalue
Unsafe version ofstringvalue. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-