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 {
{@link FMOD_CODEC_METADATA_FUNCI FMOD_CODEC_METADATA_FUNC} metadata;
{@link FMOD_CODEC_ALLOC_FUNCI FMOD_CODEC_ALLOC_FUNC} alloc;
{@link FMOD_CODEC_FREE_FUNCI FMOD_CODEC_FREE_FUNC} free;
{@link FMOD_CODEC_LOG_FUNCI FMOD_CODEC_LOG_FUNC} log;
{@link FMOD_CODEC_FILE_READ_FUNCI FMOD_CODEC_FILE_READ_FUNC} read;
{@link FMOD_CODEC_FILE_SEEK_FUNCI FMOD_CODEC_FILE_SEEK_FUNC} seek;
{@link FMOD_CODEC_FILE_TELL_FUNCI FMOD_CODEC_FILE_TELL_FUNC} tell;
{@link FMOD_CODEC_FILE_SIZE_FUNCI FMOD_CODEC_FILE_SIZE_FUNC} size;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.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_CODEC_STATE_FUNCTIONS
(ByteBuffer container) Creates aFMOD_CODEC_STATE_FUNCTIONS
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionalloc()
alloc
(FMOD_CODEC_ALLOC_FUNCI value) Sets the specified value to thealloc
field.static FMOD_CODEC_STATE_FUNCTIONS
calloc()
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_STATE_FUNCTIONS
calloc
(MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_STATE_FUNCTIONS
create()
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withBufferUtils
.static FMOD_CODEC_STATE_FUNCTIONS
create
(long address) Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance at the specified memory.static @Nullable FMOD_CODEC_STATE_FUNCTIONS
createSafe
(long address) static @Nullable FMOD_CODEC_STATE_FUNCTIONS.Buffer
createSafe
(long address, int capacity) free$()
free$
(FMOD_CODEC_FREE_FUNCI value) Sets the specified value to thefree
field.log()
log
(FMOD_CODEC_LOG_FUNCI value) Sets the specified value to thelog
field.static FMOD_CODEC_STATE_FUNCTIONS
malloc()
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_CODEC_STATE_FUNCTIONS
malloc
(MemoryStack stack) Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated on the specifiedMemoryStack
.metadata()
Sets the specified value to themetadata
field.static FMOD_CODEC_ALLOC_FUNC
nalloc
(long struct) Unsafe version ofalloc()
.static void
nalloc
(long struct, FMOD_CODEC_ALLOC_FUNCI value) Unsafe version ofalloc
.static FMOD_CODEC_FREE_FUNC
nfree$
(long struct) Unsafe version offree$()
.static void
nfree$
(long struct, FMOD_CODEC_FREE_FUNCI value) Unsafe version offree$
.static FMOD_CODEC_LOG_FUNC
nlog
(long struct) Unsafe version oflog()
.static void
nlog
(long struct, FMOD_CODEC_LOG_FUNCI value) Unsafe version oflog
.static FMOD_CODEC_METADATA_FUNC
nmetadata
(long struct) Unsafe version ofmetadata()
.static void
nmetadata
(long struct, FMOD_CODEC_METADATA_FUNCI value) Unsafe version ofmetadata
.static FMOD_CODEC_FILE_READ_FUNC
nread
(long struct) Unsafe version ofread()
.static void
nread
(long struct, FMOD_CODEC_FILE_READ_FUNCI value) Unsafe version ofread
.static FMOD_CODEC_FILE_SEEK_FUNC
nseek
(long struct) Unsafe version ofseek()
.static void
nseek
(long struct, FMOD_CODEC_FILE_SEEK_FUNCI value) Unsafe version ofseek
.static FMOD_CODEC_FILE_SIZE_FUNC
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, FMOD_CODEC_FILE_SIZE_FUNCI value) Unsafe version ofsize
.static FMOD_CODEC_FILE_TELL_FUNC
ntell
(long struct) Unsafe version oftell()
.static void
ntell
(long struct, FMOD_CODEC_FILE_TELL_FUNCI value) Unsafe version oftell
.read()
read
(FMOD_CODEC_FILE_READ_FUNCI value) Sets the specified value to theread
field.seek()
seek
(FMOD_CODEC_FILE_SEEK_FUNCI value) Sets the specified value to theseek
field.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 thesize
field.int
sizeof()
Returnssizeof(struct)
.tell()
tell
(FMOD_CODEC_FILE_TELL_FUNCI value) Sets the specified value to thetell
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. -
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_FUNCTIONS
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_CODEC_STATE_FUNCTIONS>
-
metadata
- Returns:
- the value of the
metadata
field.
-
alloc
- Returns:
- the value of the
alloc
field.
-
free$
- Returns:
- the value of the
free
field.
-
log
- Returns:
- the value of the
log
field.
-
read
- Returns:
- the value of the
read
field.
-
seek
- Returns:
- the value of the
seek
field.
-
tell
- Returns:
- the value of the
tell
field.
-
size
- Returns:
- the value of the
size
field.
-
metadata
Sets the specified value to themetadata
field. -
alloc
Sets the specified value to thealloc
field. -
free$
Sets the specified value to thefree
field. -
log
Sets the specified value to thelog
field. -
read
Sets the specified value to theread
field. -
seek
Sets the specified value to theseek
field. -
tell
Sets the specified value to thetell
field. -
size
Sets the specified value to thesize
field. -
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_FUNCTIONS
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated withBufferUtils
. -
create
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE_FUNCTIONS.Buffer
instance allocated on the specifiedMemoryStack
and 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
-