Package org.lwjgl.fmod
Class FMOD_ERRORCALLBACK_INFO
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_ERRORCALLBACK_INFO
extends Struct<FMOD_ERRORCALLBACK_INFO>
implements NativeResource
struct FMOD_ERRORCALLBACK_INFO {
FMOD_RESULT result;
FMOD_ERRORCALLBACK_INSTANCETYPE instancetype;
void * instance;
char const * functionname;
char const * functionparams;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFMOD_ERRORCALLBACK_INFO
(ByteBuffer container) Creates aFMOD_ERRORCALLBACK_INFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_ERRORCALLBACK_INFO
calloc()
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_ERRORCALLBACK_INFO
calloc
(MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_ERRORCALLBACK_INFO
create()
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withBufferUtils
.static FMOD_ERRORCALLBACK_INFO
create
(long address) Returns a newFMOD_ERRORCALLBACK_INFO
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_ERRORCALLBACK_INFO.Buffer
instance at the specified memory.static @Nullable FMOD_ERRORCALLBACK_INFO
createSafe
(long address) static @Nullable FMOD_ERRORCALLBACK_INFO.Buffer
createSafe
(long address, int capacity) functionname
(ByteBuffer value) Sets the address of the specified encoded string to thefunctionname
field.functionparams
(ByteBuffer value) Sets the address of the specified encoded string to thefunctionparams
field.long
instance()
instance
(long value) Sets the specified value to theinstance
field.int
instancetype
(int value) Sets the specified value to theinstancetype
field.static FMOD_ERRORCALLBACK_INFO
malloc()
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_ERRORCALLBACK_INFO
malloc
(MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated on the specifiedMemoryStack
.static ByteBuffer
nfunctionname
(long struct) Unsafe version offunctionname()
.static void
nfunctionname
(long struct, ByteBuffer value) Unsafe version offunctionname
.static String
nfunctionnameString
(long struct) Unsafe version offunctionnameString()
.static ByteBuffer
nfunctionparams
(long struct) Unsafe version offunctionparams()
.static void
nfunctionparams
(long struct, ByteBuffer value) Unsafe version offunctionparams
.static String
nfunctionparamsString
(long struct) Unsafe version offunctionparamsString()
.static long
ninstance
(long struct) Unsafe version ofinstance()
.static void
ninstance
(long struct, long value) Unsafe version ofinstance
.static int
ninstancetype
(long struct) Unsafe version ofinstancetype()
.static void
ninstancetype
(long struct, int value) Unsafe version ofinstancetype
.static int
nresult
(long struct) Unsafe version ofresult()
.static void
nresult
(long struct, int value) Unsafe version ofresult
.int
result()
result
(int value) Sets the specified value to theresult
field.set
(int result, int instancetype, long instance, ByteBuffer functionname, ByteBuffer functionparams) 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. -
RESULT
public static final int RESULTThe struct member offsets. -
INSTANCETYPE
public static final int INSTANCETYPEThe struct member offsets. -
INSTANCE
public static final int INSTANCEThe struct member offsets. -
FUNCTIONNAME
public static final int FUNCTIONNAMEThe struct member offsets. -
FUNCTIONPARAMS
public static final int FUNCTIONPARAMSThe struct member offsets.
-
-
Constructor Details
-
FMOD_ERRORCALLBACK_INFO
Creates aFMOD_ERRORCALLBACK_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_ERRORCALLBACK_INFO>
-
result
public int result()- Returns:
- the value of the
result
field.
-
instancetype
public int instancetype()- Returns:
- the value of the
instancetype
field.
-
instance
public long instance()- Returns:
- the value of the
instance
field.
-
functionname
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefunctionname
field.
-
functionnameString
- Returns:
- the null-terminated string pointed to by the
functionname
field.
-
functionparams
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefunctionparams
field.
-
functionparamsString
- Returns:
- the null-terminated string pointed to by the
functionparams
field.
-
result
Sets the specified value to theresult
field. -
instancetype
Sets the specified value to theinstancetype
field. -
instance
Sets the specified value to theinstance
field. -
functionname
Sets the address of the specified encoded string to thefunctionname
field. -
functionparams
Sets the address of the specified encoded string to thefunctionparams
field. -
set
public FMOD_ERRORCALLBACK_INFO set(int result, int instancetype, long instance, ByteBuffer functionname, ByteBuffer functionparams) 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_ERRORCALLBACK_INFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_ERRORCALLBACK_INFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_ERRORCALLBACK_INFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_ERRORCALLBACK_INFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_ERRORCALLBACK_INFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_ERRORCALLBACK_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_ERRORCALLBACK_INFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_ERRORCALLBACK_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
-
nresult
public static int nresult(long struct) Unsafe version ofresult()
. -
ninstancetype
public static int ninstancetype(long struct) Unsafe version ofinstancetype()
. -
ninstance
public static long ninstance(long struct) Unsafe version ofinstance()
. -
nfunctionname
Unsafe version offunctionname()
. -
nfunctionnameString
Unsafe version offunctionnameString()
. -
nfunctionparams
Unsafe version offunctionparams()
. -
nfunctionparamsString
Unsafe version offunctionparamsString()
. -
nresult
public static void nresult(long struct, int value) Unsafe version ofresult
. -
ninstancetype
public static void ninstancetype(long struct, int value) Unsafe version ofinstancetype
. -
ninstance
public static void ninstance(long struct, long value) Unsafe version ofinstance
. -
nfunctionname
Unsafe version offunctionname
. -
nfunctionparams
Unsafe version offunctionparams
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-