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.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 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_INFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_ERRORCALLBACK_INFOcalloc()Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_ERRORCALLBACK_INFOcalloc(MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_ERRORCALLBACK_INFOcreate()Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withBufferUtils.static FMOD_ERRORCALLBACK_INFOcreate(long address) Returns a newFMOD_ERRORCALLBACK_INFOinstance for the specified memory address.create(long address, int capacity) Create aFMOD_ERRORCALLBACK_INFO.Bufferinstance at the specified memory.static @Nullable FMOD_ERRORCALLBACK_INFOcreateSafe(long address) static @Nullable FMOD_ERRORCALLBACK_INFO.BuffercreateSafe(long address, int capacity) functionname(ByteBuffer value) Sets the address of the specified encoded string to thefunctionnamefield.functionparams(ByteBuffer value) Sets the address of the specified encoded string to thefunctionparamsfield.longinstance()instance(long value) Sets the specified value to theinstancefield.intinstancetype(int value) Sets the specified value to theinstancetypefield.static FMOD_ERRORCALLBACK_INFOmalloc()Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_ERRORCALLBACK_INFOmalloc(MemoryStack stack) Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated on the specifiedMemoryStack.static ByteBuffernfunctionname(long struct) Unsafe version offunctionname().static voidnfunctionname(long struct, ByteBuffer value) Unsafe version offunctionname.static StringnfunctionnameString(long struct) Unsafe version offunctionnameString().static ByteBuffernfunctionparams(long struct) Unsafe version offunctionparams().static voidnfunctionparams(long struct, ByteBuffer value) Unsafe version offunctionparams.static StringnfunctionparamsString(long struct) Unsafe version offunctionparamsString().static longninstance(long struct) Unsafe version ofinstance().static voidninstance(long struct, long value) Unsafe version ofinstance.static intninstancetype(long struct) Unsafe version ofinstancetype().static voidninstancetype(long struct, int value) Unsafe version ofinstancetype.static intnresult(long struct) Unsafe version ofresult().static voidnresult(long struct, int value) Unsafe version ofresult.intresult()result(int value) Sets the specified value to theresultfield.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.intsizeof()Returnssizeof(struct).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. -
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_INFOinstance 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_ERRORCALLBACK_INFO>
-
result
public int result()- Returns:
- the value of the
resultfield.
-
instancetype
public int instancetype()- Returns:
- the value of the
instancetypefield.
-
instance
public long instance()- Returns:
- the value of the
instancefield.
-
functionname
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefunctionnamefield.
-
functionnameString
- Returns:
- the null-terminated string pointed to by the
functionnamefield.
-
functionparams
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefunctionparamsfield.
-
functionparamsString
- Returns:
- the null-terminated string pointed to by the
functionparamsfield.
-
result
Sets the specified value to theresultfield. -
instancetype
Sets the specified value to theinstancetypefield. -
instance
Sets the specified value to theinstancefield. -
functionname
Sets the address of the specified encoded string to thefunctionnamefield. -
functionparams
Sets the address of the specified encoded string to thefunctionparamsfield. -
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_INFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_ERRORCALLBACK_INFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_ERRORCALLBACK_INFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_ERRORCALLBACK_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_ERRORCALLBACK_INFO.Bufferinstance allocated on the specifiedMemoryStackand 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
-