Package org.lwjgl.fmod
Class FMOD_TAG
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_TAG {
FMOD_TAGTYPE type;
FMOD_TAGDATATYPE datatype;
char * name;
void * data;
unsigned int datalen;
FMOD_BOOL updated;
}-
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_TAG(ByteBuffer container) Creates aFMOD_TAGinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_TAGcalloc()Returns a newFMOD_TAGinstance allocated withmemCalloc.static FMOD_TAG.Buffercalloc(int capacity) Returns a newFMOD_TAG.Bufferinstance allocated withmemCalloc.static FMOD_TAG.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_TAG.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_TAGcalloc(MemoryStack stack) Returns a newFMOD_TAGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_TAGcreate()Returns a newFMOD_TAGinstance allocated withBufferUtils.static FMOD_TAG.Buffercreate(int capacity) Returns a newFMOD_TAG.Bufferinstance allocated withBufferUtils.static FMOD_TAGcreate(long address) Returns a newFMOD_TAGinstance for the specified memory address.static FMOD_TAG.Buffercreate(long address, int capacity) Create aFMOD_TAG.Bufferinstance at the specified memory.static @Nullable FMOD_TAGcreateSafe(long address) static @Nullable FMOD_TAG.BuffercreateSafe(long address, int capacity) data()data(ByteBuffer value) Sets the address of the specifiedByteBufferto thedatafield.intdatalen()intdatatype()datatype(int value) Sets the specified value to thedatatypefield.static FMOD_TAGmalloc()Returns a newFMOD_TAGinstance allocated withmemAlloc.static FMOD_TAG.Buffermalloc(int capacity) Returns a newFMOD_TAG.Bufferinstance allocated withmemAlloc.static FMOD_TAG.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_TAG.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_TAGmalloc(MemoryStack stack) Returns a newFMOD_TAGinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static ByteBufferndata(long struct) Unsafe version ofdata.static voidndata(long struct, ByteBuffer value) Unsafe version ofdata.static intndatalen(long struct) Unsafe version ofdatalen().static voidndatalen(long struct, int value) Sets the specified value to thedatalenfield of the specifiedstruct.static intndatatype(long struct) Unsafe version ofdatatype().static voidndatatype(long struct, int value) Unsafe version ofdatatype.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnupdated(long struct) Unsafe version ofupdated().static voidnupdated(long struct, int value) Unsafe version ofupdated.set(int type, int datatype, ByteBuffer name, ByteBuffer data, int updated) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.intupdated()updated(int value) Sets the specified value to theupdatedfield.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. -
DATATYPE
public static final int DATATYPEThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
DATALEN
public static final int DATALENThe struct member offsets. -
UPDATED
public static final int UPDATEDThe struct member offsets.
-
-
Constructor Details
-
FMOD_TAG
Creates aFMOD_TAGinstance 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). -
type
public int type()- Returns:
- the value of the
typefield.
-
datatype
public int datatype()- Returns:
- the value of the
datatypefield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
data
- Returns:
- a
ByteBufferview of the data pointed to by thedatafield.
-
datalen
public int datalen()- Returns:
- the value of the
datalenfield.
-
updated
public int updated()- Returns:
- the value of the
updatedfield.
-
type
Sets the specified value to thetypefield. -
datatype
Sets the specified value to thedatatypefield. -
name
Sets the address of the specified encoded string to thenamefield. -
data
Sets the address of the specifiedByteBufferto thedatafield. -
updated
Sets the specified value to theupdatedfield. -
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 newFMOD_TAGinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_TAGinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_TAGinstance allocated withBufferUtils. -
create
Returns a newFMOD_TAGinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_TAG.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_TAG.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_TAG.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_TAG.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_TAGinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_TAGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_TAG.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_TAG.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(). -
ndatatype
public static int ndatatype(long struct) Unsafe version ofdatatype(). -
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
ndata
Unsafe version ofdata. -
ndatalen
public static int ndatalen(long struct) Unsafe version ofdatalen(). -
nupdated
public static int nupdated(long struct) Unsafe version ofupdated(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
ndatatype
public static void ndatatype(long struct, int value) Unsafe version ofdatatype. -
nname
Unsafe version ofname. -
ndata
Unsafe version ofdata. -
ndatalen
public static void ndatalen(long struct, int value) Sets the specified value to thedatalenfield of the specifiedstruct. -
nupdated
public static void nupdated(long struct, int value) Unsafe version ofupdated. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-