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.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 size in bytes.static final int
The struct member offsets.static final int
The 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_TAG
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_TAG
calloc()
Returns a newFMOD_TAG
instance allocated withmemCalloc
.static FMOD_TAG.Buffer
calloc
(int capacity) Returns a newFMOD_TAG.Buffer
instance allocated withmemCalloc
.static FMOD_TAG.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_TAG.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_TAG
calloc
(MemoryStack stack) Returns a newFMOD_TAG
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_TAG
create()
Returns a newFMOD_TAG
instance allocated withBufferUtils
.static FMOD_TAG.Buffer
create
(int capacity) Returns a newFMOD_TAG.Buffer
instance allocated withBufferUtils
.static FMOD_TAG
create
(long address) Returns a newFMOD_TAG
instance for the specified memory address.static FMOD_TAG.Buffer
create
(long address, int capacity) Create aFMOD_TAG.Buffer
instance at the specified memory.static @Nullable FMOD_TAG
createSafe
(long address) static @Nullable FMOD_TAG.Buffer
createSafe
(long address, int capacity) data()
data
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thedata
field.int
datalen()
int
datatype()
datatype
(int value) Sets the specified value to thedatatype
field.static FMOD_TAG
malloc()
Returns a newFMOD_TAG
instance allocated withmemAlloc
.static FMOD_TAG.Buffer
malloc
(int capacity) Returns a newFMOD_TAG.Buffer
instance allocated withmemAlloc
.static FMOD_TAG.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_TAG.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_TAG
malloc
(MemoryStack stack) Returns a newFMOD_TAG
instance allocated on the specifiedMemoryStack
.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.static ByteBuffer
ndata
(long struct) Unsafe version ofdata
.static void
ndata
(long struct, ByteBuffer value) Unsafe version ofdata
.static int
ndatalen
(long struct) Unsafe version ofdatalen()
.static void
ndatalen
(long struct, int value) Sets the specified value to thedatalen
field of the specifiedstruct
.static int
ndatatype
(long struct) Unsafe version ofdatatype()
.static void
ndatatype
(long struct, int value) Unsafe version ofdatatype
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static int
nupdated
(long struct) Unsafe version ofupdated()
.static void
nupdated
(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.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.int
updated()
updated
(int value) Sets the specified value to theupdated
field.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. -
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_TAG
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)
. -
type
public int type()- Returns:
- the value of the
type
field.
-
datatype
public int datatype()- Returns:
- the value of the
datatype
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
data
- Returns:
- a
ByteBuffer
view of the data pointed to by thedata
field.
-
datalen
public int datalen()- Returns:
- the value of the
datalen
field.
-
updated
public int updated()- Returns:
- the value of the
updated
field.
-
type
Sets the specified value to thetype
field. -
datatype
Sets the specified value to thedatatype
field. -
name
Sets the address of the specified encoded string to thename
field. -
data
Sets the address of the specifiedByteBuffer
to thedata
field. -
updated
Sets the specified value to theupdated
field. -
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_TAG
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_TAG
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_TAG
instance allocated withBufferUtils
. -
create
Returns a newFMOD_TAG
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_TAG.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_TAG.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_TAG.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_TAG.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_TAG
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_TAG
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_TAG.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_TAG.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedatalen
field 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
-