Top Description Inners Fields Constructors Methods
org.lwjgl.fmod

public Class FMOD_ERRORCALLBACK_INFO

extends Struct<FMOD_ERRORCALLBACK_INFO>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct FMOD_ERRORCALLBACK_INFO {
    FMOD_RESULT result;
    FMOD_ERRORCALLBACK_INSTANCETYPE instancetype;
    void * instance;
    char const * functionname;
    char const * functionparams;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FUNCTIONNAME

The struct member offsets.

public static final int
FUNCTIONPARAMS

The struct member offsets.

public static final int
INSTANCE

The struct member offsets.

public static final int
INSTANCETYPE

The struct member offsets.

public static final int
RESULT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
FMOD_ERRORCALLBACK_INFO(long address, ByteBuffer container)

public
FMOD_ERRORCALLBACK_INFO(ByteBuffer container)

Creates a FMOD_ERRORCALLBACK_INFO instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static FMOD_ERRORCALLBACK_INFO
calloc()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with memCalloc.

public static FMOD_ERRORCALLBACK_INFO.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with memCalloc.

public static FMOD_ERRORCALLBACK_INFO
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static FMOD_ERRORCALLBACK_INFO.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected FMOD_ERRORCALLBACK_INFO
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static FMOD_ERRORCALLBACK_INFO
create()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with BufferUtils.

public static FMOD_ERRORCALLBACK_INFO
create(long address)

Returns a new FMOD_ERRORCALLBACK_INFO instance for the specified memory address.

public static FMOD_ERRORCALLBACK_INFO.Buffer
create(int
the buffer capacity
capacity
)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with BufferUtils.

public static FMOD_ERRORCALLBACK_INFO.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a FMOD_ERRORCALLBACK_INFO.Buffer instance at the specified memory.

public static FMOD_ERRORCALLBACK_INFO
createSafe(long address)

Like create, but returns null if address is NULL.

public static FMOD_ERRORCALLBACK_INFO.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the functionname field.
functionname
()

public FMOD_ERRORCALLBACK_INFO
functionname(ByteBuffer value)

Sets the address of the specified encoded string to the functionname field.

public String

Returns:

the null-terminated string pointed to by the functionname field.
functionnameString
()

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the functionparams field.
functionparams
()

public FMOD_ERRORCALLBACK_INFO
functionparams(ByteBuffer value)

Sets the address of the specified encoded string to the functionparams field.

public String

Returns:

the null-terminated string pointed to by the functionparams field.
functionparamsString
()

public long

Returns:

the value of the instance field.
instance
()

public FMOD_ERRORCALLBACK_INFO
instance(long value)

Sets the specified value to the instance field.

public int

Returns:

the value of the instancetype field.
instancetype
()

public FMOD_ERRORCALLBACK_INFO
instancetype(int value)

Sets the specified value to the instancetype field.

public static FMOD_ERRORCALLBACK_INFO
malloc()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with memAlloc.

public static FMOD_ERRORCALLBACK_INFO.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with memAlloc.

public static FMOD_ERRORCALLBACK_INFO
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated on the specified MemoryStack.

public static FMOD_ERRORCALLBACK_INFO.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated on the specified MemoryStack.

public static ByteBuffer
nfunctionname(long struct)

Unsafe version of functionname.

public static void
nfunctionname(long struct, ByteBuffer value)

Unsafe version of functionname.

public static String
nfunctionnameString(long struct)

Unsafe version of functionnameString.

public static ByteBuffer
nfunctionparams(long struct)

Unsafe version of functionparams.

public static void
nfunctionparams(long struct, ByteBuffer value)

Unsafe version of functionparams.

public static String
nfunctionparamsString(long struct)

Unsafe version of functionparamsString.

public static long
ninstance(long struct)

Unsafe version of instance.

public static void
ninstance(long struct, long value)

Unsafe version of instance.

public static int
ninstancetype(long struct)

Unsafe version of instancetype.

public static void
ninstancetype(long struct, int value)

Unsafe version of instancetype.

public static int
nresult(long struct)

Unsafe version of result.

public static void
nresult(long struct, int value)

Unsafe version of result.

public int

Returns:

the value of the result field.
result
()

public FMOD_ERRORCALLBACK_INFO
result(int value)

Sets the specified value to the result field.

public FMOD_ERRORCALLBACK_INFO
set(int result, int instancetype, long instance, ByteBuffer functionname, ByteBuffer functionparams)

Initializes this struct with the specified values.

public FMOD_ERRORCALLBACK_INFO

Returns:

this struct
set
(FMOD_ERRORCALLBACK_INFO
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FUNCTIONNAMEback to summary
public static final int FUNCTIONNAME

The struct member offsets.

FUNCTIONPARAMSback to summary
public static final int FUNCTIONPARAMS

The struct member offsets.

INSTANCEback to summary
public static final int INSTANCE

The struct member offsets.

INSTANCETYPEback to summary
public static final int INSTANCETYPE

The struct member offsets.

RESULTback to summary
public static final int RESULT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

FMOD_ERRORCALLBACK_INFOback to summary
protected FMOD_ERRORCALLBACK_INFO(long address, ByteBuffer container)
FMOD_ERRORCALLBACK_INFOback to summary
public FMOD_ERRORCALLBACK_INFO(ByteBuffer container)

Creates a FMOD_ERRORCALLBACK_INFO instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static FMOD_ERRORCALLBACK_INFO calloc()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer calloc(int capacity)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static FMOD_ERRORCALLBACK_INFO calloc(MemoryStack stack)

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer calloc(int capacity, MemoryStack stack)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected FMOD_ERRORCALLBACK_INFO create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static FMOD_ERRORCALLBACK_INFO create()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with BufferUtils.

createback to summary
public static FMOD_ERRORCALLBACK_INFO create(long address)

Returns a new FMOD_ERRORCALLBACK_INFO instance for the specified memory address.

createback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer create(int capacity)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer create(long address, int capacity)

Create a FMOD_ERRORCALLBACK_INFO.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FMOD_ERRORCALLBACK_INFO createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
functionnameback to summary
public ByteBuffer functionname()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the functionname field.

Annotations
@NativeType:char const *
functionnameback to summary
public FMOD_ERRORCALLBACK_INFO functionname(ByteBuffer value)

Sets the address of the specified encoded string to the functionname field.

functionnameStringback to summary
public String functionnameString()
Returns:String

the null-terminated string pointed to by the functionname field.

Annotations
@NativeType:char const *
functionparamsback to summary
public ByteBuffer functionparams()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the functionparams field.

Annotations
@NativeType:char const *
functionparamsback to summary
public FMOD_ERRORCALLBACK_INFO functionparams(ByteBuffer value)

Sets the address of the specified encoded string to the functionparams field.

functionparamsStringback to summary
public String functionparamsString()
Returns:String

the null-terminated string pointed to by the functionparams field.

Annotations
@NativeType:char const *
instanceback to summary
public long instance()
Returns:long

the value of the instance field.

Annotations
@NativeType:void *
instanceback to summary
public FMOD_ERRORCALLBACK_INFO instance(long value)

Sets the specified value to the instance field.

instancetypeback to summary
public int instancetype()
Returns:int

the value of the instancetype field.

Annotations
@NativeType:FMOD_ERRORCALLBACK_INSTANCETYPE
instancetypeback to summary
public FMOD_ERRORCALLBACK_INFO instancetype(int value)

Sets the specified value to the instancetype field.

mallocback to summary
public static FMOD_ERRORCALLBACK_INFO malloc()

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer malloc(int capacity)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static FMOD_ERRORCALLBACK_INFO malloc(MemoryStack stack)

Returns a new FMOD_ERRORCALLBACK_INFO instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static FMOD_ERRORCALLBACK_INFO.Buffer malloc(int capacity, MemoryStack stack)

Returns a new FMOD_ERRORCALLBACK_INFO.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nfunctionnameback to summary
public static ByteBuffer nfunctionname(long struct)

Unsafe version of functionname.

nfunctionnameback to summary
public static void nfunctionname(long struct, ByteBuffer value)

Unsafe version of functionname.

nfunctionnameStringback to summary
public static String nfunctionnameString(long struct)

Unsafe version of functionnameString.

nfunctionparamsback to summary
public static ByteBuffer nfunctionparams(long struct)

Unsafe version of functionparams.

nfunctionparamsback to summary
public static void nfunctionparams(long struct, ByteBuffer value)

Unsafe version of functionparams.

nfunctionparamsStringback to summary
public static String nfunctionparamsString(long struct)

Unsafe version of functionparamsString.

ninstanceback to summary
public static long ninstance(long struct)

Unsafe version of instance.

ninstanceback to summary
public static void ninstance(long struct, long value)

Unsafe version of instance.

ninstancetypeback to summary
public static int ninstancetype(long struct)

Unsafe version of instancetype.

ninstancetypeback to summary
public static void ninstancetype(long struct, int value)

Unsafe version of instancetype.

nresultback to summary
public static int nresult(long struct)

Unsafe version of result.

nresultback to summary
public static void nresult(long struct, int value)

Unsafe version of result.

resultback to summary
public int result()
Returns:int

the value of the result field.

Annotations
@NativeType:FMOD_RESULT
resultback to summary
public FMOD_ERRORCALLBACK_INFO result(int value)

Sets the specified value to the result field.

setback to summary
public FMOD_ERRORCALLBACK_INFO set(int result, int instancetype, long instance, ByteBuffer functionname, ByteBuffer functionparams)

Initializes this struct with the specified values.

setback to summary
public FMOD_ERRORCALLBACK_INFO set(FMOD_ERRORCALLBACK_INFO src)

Copies the specified struct data to this struct.

Parameters
src:FMOD_ERRORCALLBACK_INFO

the source struct

Returns:FMOD_ERRORCALLBACK_INFO

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

org.lwjgl.fmod back to summary

public Class FMOD_ERRORCALLBACK_INFO.Buffer

extends StructBuffer<FMOD_ERRORCALLBACK_INFO, FMOD_ERRORCALLBACK_INFO.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of FMOD_ERRORCALLBACK_INFO structs.

Field Summary

Modifier and TypeField and Description
private static final FMOD_ERRORCALLBACK_INFO

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FMOD_ERRORCALLBACK_INFO.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the functionname field.
functionname
()

public FMOD_ERRORCALLBACK_INFO.Buffer
functionname(ByteBuffer value)

Sets the address of the specified encoded string to the functionname field.

public String

Returns:

the null-terminated string pointed to by the functionname field.
functionnameString
()

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the functionparams field.
functionparams
()

public FMOD_ERRORCALLBACK_INFO.Buffer
functionparams(ByteBuffer value)

Sets the address of the specified encoded string to the functionparams field.

public String

Returns:

the null-terminated string pointed to by the functionparams field.
functionparamsString
()

protected FMOD_ERRORCALLBACK_INFO
public long

Returns:

the value of the instance field.
instance
()

public FMOD_ERRORCALLBACK_INFO.Buffer
instance(long value)

Sets the specified value to the instance field.

public int

Returns:

the value of the instancetype field.
instancetype
()

public FMOD_ERRORCALLBACK_INFO.Buffer
instancetype(int value)

Sets the specified value to the instancetype field.

public int

Returns:

the value of the result field.
result
()

public FMOD_ERRORCALLBACK_INFO.Buffer
result(int value)

Sets the specified value to the result field.

protected FMOD_ERRORCALLBACK_INFO.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FMOD_ERRORCALLBACK_INFO ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new FMOD_ERRORCALLBACK_INFO.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by FMOD_ERRORCALLBACK_INFO#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

functionnameback to summary
public ByteBuffer functionname()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the functionname field.

Annotations
@NativeType:char const *
functionnameback to summary
public FMOD_ERRORCALLBACK_INFO.Buffer functionname(ByteBuffer value)

Sets the address of the specified encoded string to the functionname field.

functionnameStringback to summary
public String functionnameString()
Returns:String

the null-terminated string pointed to by the functionname field.

Annotations
@NativeType:char const *
functionparamsback to summary
public ByteBuffer functionparams()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the functionparams field.

Annotations
@NativeType:char const *
functionparamsback to summary
public FMOD_ERRORCALLBACK_INFO.Buffer functionparams(ByteBuffer value)

Sets the address of the specified encoded string to the functionparams field.

functionparamsStringback to summary
public String functionparamsString()
Returns:String

the null-terminated string pointed to by the functionparams field.

Annotations
@NativeType:char const *
getElementFactoryback to summary
protected FMOD_ERRORCALLBACK_INFO getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
instanceback to summary
public long instance()
Returns:long

the value of the instance field.

Annotations
@NativeType:void *
instanceback to summary
public FMOD_ERRORCALLBACK_INFO.Buffer instance(long value)

Sets the specified value to the instance field.

instancetypeback to summary
public int instancetype()
Returns:int

the value of the instancetype field.

Annotations
@NativeType:FMOD_ERRORCALLBACK_INSTANCETYPE
instancetypeback to summary
public FMOD_ERRORCALLBACK_INFO.Buffer instancetype(int value)

Sets the specified value to the instancetype field.

resultback to summary
public int result()
Returns:int

the value of the result field.

Annotations
@NativeType:FMOD_RESULT
resultback to summary
public FMOD_ERRORCALLBACK_INFO.Buffer result(int value)

Sets the specified value to the result field.

selfback to summary
protected FMOD_ERRORCALLBACK_INFO.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override