Package org.lwjgl.fmod
Class FMOD_CODEC_STATE_FUNCTIONS
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_CODEC_STATE_FUNCTIONS
extends Struct<FMOD_CODEC_STATE_FUNCTIONS>
implements NativeResource
struct FMOD_CODEC_STATE_FUNCTIONS {
FMOD_CODEC_METADATA_FUNC metadata;
FMOD_CODEC_ALLOC_FUNC alloc;
FMOD_CODEC_FREE_FUNC free;
FMOD_CODEC_LOG_FUNC log;
FMOD_CODEC_FILE_READ_FUNC read;
FMOD_CODEC_FILE_SEEK_FUNC seek;
FMOD_CODEC_FILE_TELL_FUNC tell;
FMOD_CODEC_FILE_SIZE_FUNC size;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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_CODEC_STATE_FUNCTIONS(ByteBuffer container) Creates aFMOD_CODEC_STATE_FUNCTIONSinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionalloc()alloc(FMOD_CODEC_ALLOC_FUNCI value) Sets the specified value to theallocfield.static FMOD_CODEC_STATE_FUNCTIONScalloc()Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_STATE_FUNCTIONScalloc(MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_STATE_FUNCTIONScreate()Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withBufferUtils.static FMOD_CODEC_STATE_FUNCTIONScreate(long address) Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance for the specified memory address.create(long address, int capacity) Create aFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance at the specified memory.static @Nullable FMOD_CODEC_STATE_FUNCTIONScreateSafe(long address) static @Nullable FMOD_CODEC_STATE_FUNCTIONS.BuffercreateSafe(long address, int capacity) free$()free$(FMOD_CODEC_FREE_FUNCI value) Sets the specified value to thefreefield.log()log(FMOD_CODEC_LOG_FUNCI value) Sets the specified value to thelogfield.static FMOD_CODEC_STATE_FUNCTIONSmalloc()Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_CODEC_STATE_FUNCTIONSmalloc(MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated on the specifiedMemoryStack.metadata()Sets the specified value to themetadatafield.static FMOD_CODEC_ALLOC_FUNCnalloc(long struct) Unsafe version ofalloc().static voidnalloc(long struct, FMOD_CODEC_ALLOC_FUNCI value) Unsafe version ofalloc.static FMOD_CODEC_FREE_FUNCnfree$(long struct) Unsafe version offree$().static voidnfree$(long struct, FMOD_CODEC_FREE_FUNCI value) Unsafe version offree$.static FMOD_CODEC_LOG_FUNCnlog(long struct) Unsafe version oflog().static voidnlog(long struct, FMOD_CODEC_LOG_FUNCI value) Unsafe version oflog.static FMOD_CODEC_METADATA_FUNCnmetadata(long struct) Unsafe version ofmetadata().static voidnmetadata(long struct, FMOD_CODEC_METADATA_FUNCI value) Unsafe version ofmetadata.static FMOD_CODEC_FILE_READ_FUNCnread(long struct) Unsafe version ofread().static voidnread(long struct, FMOD_CODEC_FILE_READ_FUNCI value) Unsafe version ofread.static FMOD_CODEC_FILE_SEEK_FUNCnseek(long struct) Unsafe version ofseek().static voidnseek(long struct, FMOD_CODEC_FILE_SEEK_FUNCI value) Unsafe version ofseek.static FMOD_CODEC_FILE_SIZE_FUNCnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, FMOD_CODEC_FILE_SIZE_FUNCI value) Unsafe version ofsize.static FMOD_CODEC_FILE_TELL_FUNCntell(long struct) Unsafe version oftell().static voidntell(long struct, FMOD_CODEC_FILE_TELL_FUNCI value) Unsafe version oftell.read()read(FMOD_CODEC_FILE_READ_FUNCI value) Sets the specified value to thereadfield.seek()seek(FMOD_CODEC_FILE_SEEK_FUNCI value) Sets the specified value to theseekfield.set(FMOD_CODEC_METADATA_FUNCI metadata, FMOD_CODEC_ALLOC_FUNCI alloc, FMOD_CODEC_FREE_FUNCI free$, FMOD_CODEC_LOG_FUNCI log, FMOD_CODEC_FILE_READ_FUNCI read, FMOD_CODEC_FILE_SEEK_FUNCI seek, FMOD_CODEC_FILE_TELL_FUNCI tell, FMOD_CODEC_FILE_SIZE_FUNCI size) Initializes this struct with the specified values.Copies the specified struct data to this struct.size()size(FMOD_CODEC_FILE_SIZE_FUNCI value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).tell()tell(FMOD_CODEC_FILE_TELL_FUNCI value) Sets the specified value to thetellfield.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. -
METADATA
public static final int METADATAThe struct member offsets. -
ALLOC
public static final int ALLOCThe struct member offsets. -
FREE
public static final int FREEThe struct member offsets. -
LOG
public static final int LOGThe struct member offsets. -
READ
public static final int READThe struct member offsets. -
SEEK
public static final int SEEKThe struct member offsets. -
TELL
public static final int TELLThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
FMOD_CODEC_STATE_FUNCTIONS
Creates aFMOD_CODEC_STATE_FUNCTIONSinstance 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_CODEC_STATE_FUNCTIONS>
-
metadata
- Returns:
- the value of the
metadatafield.
-
alloc
- Returns:
- the value of the
allocfield.
-
free$
- Returns:
- the value of the
freefield.
-
log
- Returns:
- the value of the
logfield.
-
read
- Returns:
- the value of the
readfield.
-
seek
- Returns:
- the value of the
seekfield.
-
tell
- Returns:
- the value of the
tellfield.
-
size
- Returns:
- the value of the
sizefield.
-
metadata
Sets the specified value to themetadatafield. -
alloc
Sets the specified value to theallocfield. -
free$
Sets the specified value to thefreefield. -
log
Sets the specified value to thelogfield. -
read
Sets the specified value to thereadfield. -
seek
Sets the specified value to theseekfield. -
tell
Sets the specified value to thetellfield. -
size
Sets the specified value to thesizefield. -
set
public FMOD_CODEC_STATE_FUNCTIONS set(FMOD_CODEC_METADATA_FUNCI metadata, FMOD_CODEC_ALLOC_FUNCI alloc, FMOD_CODEC_FREE_FUNCI free$, FMOD_CODEC_LOG_FUNCI log, FMOD_CODEC_FILE_READ_FUNCI read, FMOD_CODEC_FILE_SEEK_FUNCI seek, FMOD_CODEC_FILE_TELL_FUNCI tell, FMOD_CODEC_FILE_SIZE_FUNCI size) 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_CODEC_STATE_FUNCTIONSinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated withBufferUtils. -
create
Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmetadata
Unsafe version ofmetadata(). -
nalloc
Unsafe version ofalloc(). -
nfree$
Unsafe version offree$(). -
nlog
Unsafe version oflog(). -
nread
Unsafe version ofread(). -
nseek
Unsafe version ofseek(). -
ntell
Unsafe version oftell(). -
nsize
Unsafe version ofsize(). -
nmetadata
Unsafe version ofmetadata. -
nalloc
Unsafe version ofalloc. -
nfree$
Unsafe version offree$. -
nlog
Unsafe version oflog. -
nread
Unsafe version ofread. -
nseek
Unsafe version ofseek. -
ntell
Unsafe version oftell. -
nsize
Unsafe version ofsize. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-