Top Description Inners Fields Constructors Methods
org.lwjgl.fmod

public Class FMOD_CODEC_STATE_FUNCTIONS

extends Struct<FMOD_CODEC_STATE_FUNCTIONS>
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_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 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
ALLOC

The struct member offsets.

public static final int
FREE

The struct member offsets.

public static final int
LOG

The struct member offsets.

public static final int
METADATA

The struct member offsets.

public static final int
READ

The struct member offsets.

public static final int
SEEK

The struct member offsets.

public static final int
SIZE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TELL

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
FMOD_CODEC_STATE_FUNCTIONS(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public FMOD_CODEC_ALLOC_FUNC

Returns:

the value of the alloc field.
alloc
()

public FMOD_CODEC_STATE_FUNCTIONS
alloc(FMOD_CODEC_ALLOC_FUNCI value)

Sets the specified value to the alloc field.

public static FMOD_CODEC_STATE_FUNCTIONS
calloc()

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated with memCalloc.

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

Returns a new FMOD_CODEC_STATE_FUNCTIONS.Buffer instance allocated with memCalloc.

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

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

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

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

protected FMOD_CODEC_STATE_FUNCTIONS
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_CODEC_STATE_FUNCTIONS
create()

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated with BufferUtils.

public static FMOD_CODEC_STATE_FUNCTIONS
create(long address)

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance for the specified memory address.

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

Returns a new FMOD_CODEC_STATE_FUNCTIONS.Buffer instance allocated with BufferUtils.

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

Create a FMOD_CODEC_STATE_FUNCTIONS.Buffer instance at the specified memory.

public static FMOD_CODEC_STATE_FUNCTIONS
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public FMOD_CODEC_FREE_FUNC

Returns:

the value of the free field.
free$
()

public FMOD_CODEC_STATE_FUNCTIONS
free$(FMOD_CODEC_FREE_FUNCI value)

Sets the specified value to the free field.

public FMOD_CODEC_LOG_FUNC

Returns:

the value of the log field.
log
()

public FMOD_CODEC_STATE_FUNCTIONS
log(FMOD_CODEC_LOG_FUNCI value)

Sets the specified value to the log field.

public static FMOD_CODEC_STATE_FUNCTIONS
malloc()

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated with memAlloc.

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

Returns a new FMOD_CODEC_STATE_FUNCTIONS.Buffer instance allocated with memAlloc.

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

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated on the specified MemoryStack.

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

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

public FMOD_CODEC_METADATA_FUNC

Returns:

the value of the metadata field.
metadata
()

public FMOD_CODEC_STATE_FUNCTIONS
metadata(FMOD_CODEC_METADATA_FUNCI value)

Sets the specified value to the metadata field.

public static FMOD_CODEC_ALLOC_FUNC
nalloc(long struct)

Unsafe version of alloc.

public static void
nalloc(long struct, FMOD_CODEC_ALLOC_FUNCI value)

Unsafe version of alloc.

public static FMOD_CODEC_FREE_FUNC
nfree$(long struct)

Unsafe version of free$.

public static void
nfree$(long struct, FMOD_CODEC_FREE_FUNCI value)

Unsafe version of free$.

public static FMOD_CODEC_LOG_FUNC
nlog(long struct)

Unsafe version of log.

public static void
nlog(long struct, FMOD_CODEC_LOG_FUNCI value)

Unsafe version of log.

public static FMOD_CODEC_METADATA_FUNC
nmetadata(long struct)

Unsafe version of metadata.

public static void
nmetadata(long struct, FMOD_CODEC_METADATA_FUNCI value)

Unsafe version of metadata.

public static FMOD_CODEC_FILE_READ_FUNC
nread(long struct)

Unsafe version of read.

public static void
nread(long struct, FMOD_CODEC_FILE_READ_FUNCI value)

Unsafe version of read.

public static FMOD_CODEC_FILE_SEEK_FUNC
nseek(long struct)

Unsafe version of seek.

public static void
nseek(long struct, FMOD_CODEC_FILE_SEEK_FUNCI value)

Unsafe version of seek.

public static FMOD_CODEC_FILE_SIZE_FUNC
nsize(long struct)

Unsafe version of size.

public static void
nsize(long struct, FMOD_CODEC_FILE_SIZE_FUNCI value)

Unsafe version of size.

public static FMOD_CODEC_FILE_TELL_FUNC
ntell(long struct)

Unsafe version of tell.

public static void
ntell(long struct, FMOD_CODEC_FILE_TELL_FUNCI value)

Unsafe version of tell.

public FMOD_CODEC_FILE_READ_FUNC

Returns:

the value of the read field.
read
()

public FMOD_CODEC_STATE_FUNCTIONS
read(FMOD_CODEC_FILE_READ_FUNCI value)

Sets the specified value to the read field.

public FMOD_CODEC_FILE_SEEK_FUNC

Returns:

the value of the seek field.
seek
()

public FMOD_CODEC_STATE_FUNCTIONS
seek(FMOD_CODEC_FILE_SEEK_FUNCI value)

Sets the specified value to the seek field.

public FMOD_CODEC_STATE_FUNCTIONS
public FMOD_CODEC_STATE_FUNCTIONS

Returns:

this struct
set
(FMOD_CODEC_STATE_FUNCTIONS
the source struct
src
)

Copies the specified struct data to this struct.

public FMOD_CODEC_FILE_SIZE_FUNC

Returns:

the value of the size field.
size
()

public FMOD_CODEC_STATE_FUNCTIONS
size(FMOD_CODEC_FILE_SIZE_FUNCI value)

Sets the specified value to the size field.

public int
sizeof()

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

Returns sizeof(struct).
public FMOD_CODEC_FILE_TELL_FUNC

Returns:

the value of the tell field.
tell
()

public FMOD_CODEC_STATE_FUNCTIONS
tell(FMOD_CODEC_FILE_TELL_FUNCI value)

Sets the specified value to the tell field.

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.

ALLOCback to summary
public static final int ALLOC

The struct member offsets.

FREEback to summary
public static final int FREE

The struct member offsets.

LOGback to summary
public static final int LOG

The struct member offsets.

METADATAback to summary
public static final int METADATA

The struct member offsets.

READback to summary
public static final int READ

The struct member offsets.

SEEKback to summary
public static final int SEEK

The struct member offsets.

SIZEback to summary
public static final int SIZE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TELLback to summary
public static final int TELL

The struct member offsets.

Constructor Detail

FMOD_CODEC_STATE_FUNCTIONSback to summary
protected FMOD_CODEC_STATE_FUNCTIONS(long address, ByteBuffer container)
FMOD_CODEC_STATE_FUNCTIONSback to summary
public FMOD_CODEC_STATE_FUNCTIONS(ByteBuffer container)

Creates a FMOD_CODEC_STATE_FUNCTIONS 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

allocback to summary
public FMOD_CODEC_ALLOC_FUNC alloc()
Returns:FMOD_CODEC_ALLOC_FUNC

the value of the alloc field.

allocback to summary
public FMOD_CODEC_STATE_FUNCTIONS alloc(FMOD_CODEC_ALLOC_FUNCI value)

Sets the specified value to the alloc field.

callocback to summary
public static FMOD_CODEC_STATE_FUNCTIONS calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static FMOD_CODEC_STATE_FUNCTIONS calloc(MemoryStack stack)

Returns a new FMOD_CODEC_STATE_FUNCTIONS 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_CODEC_STATE_FUNCTIONS.Buffer calloc(int capacity, MemoryStack stack)

Returns a new FMOD_CODEC_STATE_FUNCTIONS.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_CODEC_STATE_FUNCTIONS 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_CODEC_STATE_FUNCTIONS create()

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated with BufferUtils.

createback to summary
public static FMOD_CODEC_STATE_FUNCTIONS create(long address)

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance for the specified memory address.

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

Returns a new FMOD_CODEC_STATE_FUNCTIONS.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a FMOD_CODEC_STATE_FUNCTIONS.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static FMOD_CODEC_STATE_FUNCTIONS createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
free$back to summary
public FMOD_CODEC_FREE_FUNC free$()
Returns:FMOD_CODEC_FREE_FUNC

the value of the free field.

free$back to summary
public FMOD_CODEC_STATE_FUNCTIONS free$(FMOD_CODEC_FREE_FUNCI value)

Sets the specified value to the free field.

logback to summary
public FMOD_CODEC_LOG_FUNC log()
Returns:FMOD_CODEC_LOG_FUNC

the value of the log field.

logback to summary
public FMOD_CODEC_STATE_FUNCTIONS log(FMOD_CODEC_LOG_FUNCI value)

Sets the specified value to the log field.

mallocback to summary
public static FMOD_CODEC_STATE_FUNCTIONS malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static FMOD_CODEC_STATE_FUNCTIONS malloc(MemoryStack stack)

Returns a new FMOD_CODEC_STATE_FUNCTIONS instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

metadataback to summary
public FMOD_CODEC_METADATA_FUNC metadata()
Returns:FMOD_CODEC_METADATA_FUNC

the value of the metadata field.

metadataback to summary
public FMOD_CODEC_STATE_FUNCTIONS metadata(FMOD_CODEC_METADATA_FUNCI value)

Sets the specified value to the metadata field.

nallocback to summary
public static FMOD_CODEC_ALLOC_FUNC nalloc(long struct)

Unsafe version of alloc.

nallocback to summary
public static void nalloc(long struct, FMOD_CODEC_ALLOC_FUNCI value)

Unsafe version of alloc.

nfree$back to summary
public static FMOD_CODEC_FREE_FUNC nfree$(long struct)

Unsafe version of free$.

nfree$back to summary
public static void nfree$(long struct, FMOD_CODEC_FREE_FUNCI value)

Unsafe version of free$.

nlogback to summary
public static FMOD_CODEC_LOG_FUNC nlog(long struct)

Unsafe version of log.

nlogback to summary
public static void nlog(long struct, FMOD_CODEC_LOG_FUNCI value)

Unsafe version of log.

nmetadataback to summary
public static FMOD_CODEC_METADATA_FUNC nmetadata(long struct)

Unsafe version of metadata.

nmetadataback to summary
public static void nmetadata(long struct, FMOD_CODEC_METADATA_FUNCI value)

Unsafe version of metadata.

nreadback to summary
public static FMOD_CODEC_FILE_READ_FUNC nread(long struct)

Unsafe version of read.

nreadback to summary
public static void nread(long struct, FMOD_CODEC_FILE_READ_FUNCI value)

Unsafe version of read.

nseekback to summary
public static FMOD_CODEC_FILE_SEEK_FUNC nseek(long struct)

Unsafe version of seek.

nseekback to summary
public static void nseek(long struct, FMOD_CODEC_FILE_SEEK_FUNCI value)

Unsafe version of seek.

nsizeback to summary
public static FMOD_CODEC_FILE_SIZE_FUNC nsize(long struct)

Unsafe version of size.

nsizeback to summary
public static void nsize(long struct, FMOD_CODEC_FILE_SIZE_FUNCI value)

Unsafe version of size.

ntellback to summary
public static FMOD_CODEC_FILE_TELL_FUNC ntell(long struct)

Unsafe version of tell.

ntellback to summary
public static void ntell(long struct, FMOD_CODEC_FILE_TELL_FUNCI value)

Unsafe version of tell.

readback to summary
public FMOD_CODEC_FILE_READ_FUNC read()
Returns:FMOD_CODEC_FILE_READ_FUNC

the value of the read field.

readback to summary
public FMOD_CODEC_STATE_FUNCTIONS read(FMOD_CODEC_FILE_READ_FUNCI value)

Sets the specified value to the read field.

seekback to summary
public FMOD_CODEC_FILE_SEEK_FUNC seek()
Returns:FMOD_CODEC_FILE_SEEK_FUNC

the value of the seek field.

seekback to summary
public FMOD_CODEC_STATE_FUNCTIONS seek(FMOD_CODEC_FILE_SEEK_FUNCI value)

Sets the specified value to the seek field.

setback to summary
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.

setback to summary
public FMOD_CODEC_STATE_FUNCTIONS set(FMOD_CODEC_STATE_FUNCTIONS src)

Copies the specified struct data to this struct.

Parameters
src:FMOD_CODEC_STATE_FUNCTIONS

the source struct

Returns:FMOD_CODEC_STATE_FUNCTIONS

this struct

sizeback to summary
public FMOD_CODEC_FILE_SIZE_FUNC size()
Returns:FMOD_CODEC_FILE_SIZE_FUNC

the value of the size field.

sizeback to summary
public FMOD_CODEC_STATE_FUNCTIONS size(FMOD_CODEC_FILE_SIZE_FUNCI value)

Sets the specified value to the size field.

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
tellback to summary
public FMOD_CODEC_FILE_TELL_FUNC tell()
Returns:FMOD_CODEC_FILE_TELL_FUNC

the value of the tell field.

tellback to summary
public FMOD_CODEC_STATE_FUNCTIONS tell(FMOD_CODEC_FILE_TELL_FUNCI value)

Sets the specified value to the tell field.

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_CODEC_STATE_FUNCTIONS.Buffer

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

An array of FMOD_CODEC_STATE_FUNCTIONS structs.

Field Summary

Modifier and TypeField and Description
private static final FMOD_CODEC_STATE_FUNCTIONS

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new FMOD_CODEC_STATE_FUNCTIONS.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 FMOD_CODEC_ALLOC_FUNC

Returns:

the value of the alloc field.
alloc
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
alloc(FMOD_CODEC_ALLOC_FUNCI value)

Sets the specified value to the alloc field.

public FMOD_CODEC_FREE_FUNC

Returns:

the value of the free field.
free$
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
free$(FMOD_CODEC_FREE_FUNCI value)

Sets the specified value to the free field.

protected FMOD_CODEC_STATE_FUNCTIONS
public FMOD_CODEC_LOG_FUNC

Returns:

the value of the log field.
log
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
log(FMOD_CODEC_LOG_FUNCI value)

Sets the specified value to the log field.

public FMOD_CODEC_METADATA_FUNC

Returns:

the value of the metadata field.
metadata
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
metadata(FMOD_CODEC_METADATA_FUNCI value)

Sets the specified value to the metadata field.

public FMOD_CODEC_FILE_READ_FUNC

Returns:

the value of the read field.
read
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
read(FMOD_CODEC_FILE_READ_FUNCI value)

Sets the specified value to the read field.

public FMOD_CODEC_FILE_SEEK_FUNC

Returns:

the value of the seek field.
seek
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
seek(FMOD_CODEC_FILE_SEEK_FUNCI value)

Sets the specified value to the seek field.

protected FMOD_CODEC_STATE_FUNCTIONS.Buffer
public FMOD_CODEC_FILE_SIZE_FUNC

Returns:

the value of the size field.
size
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
size(FMOD_CODEC_FILE_SIZE_FUNCI value)

Sets the specified value to the size field.

public FMOD_CODEC_FILE_TELL_FUNC

Returns:

the value of the tell field.
tell
()

public FMOD_CODEC_STATE_FUNCTIONS.Buffer
tell(FMOD_CODEC_FILE_TELL_FUNCI value)

Sets the specified value to the tell field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final FMOD_CODEC_STATE_FUNCTIONS ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new FMOD_CODEC_STATE_FUNCTIONS.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_CODEC_STATE_FUNCTIONS#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

allocback to summary
public FMOD_CODEC_ALLOC_FUNC alloc()
Returns:FMOD_CODEC_ALLOC_FUNC

the value of the alloc field.

allocback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer alloc(FMOD_CODEC_ALLOC_FUNCI value)

Sets the specified value to the alloc field.

free$back to summary
public FMOD_CODEC_FREE_FUNC free$()
Returns:FMOD_CODEC_FREE_FUNC

the value of the free field.

free$back to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer free$(FMOD_CODEC_FREE_FUNCI value)

Sets the specified value to the free field.

getElementFactoryback to summary
protected FMOD_CODEC_STATE_FUNCTIONS getElementFactory()

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

Annotations
@Override
logback to summary
public FMOD_CODEC_LOG_FUNC log()
Returns:FMOD_CODEC_LOG_FUNC

the value of the log field.

logback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer log(FMOD_CODEC_LOG_FUNCI value)

Sets the specified value to the log field.

metadataback to summary
public FMOD_CODEC_METADATA_FUNC metadata()
Returns:FMOD_CODEC_METADATA_FUNC

the value of the metadata field.

metadataback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer metadata(FMOD_CODEC_METADATA_FUNCI value)

Sets the specified value to the metadata field.

readback to summary
public FMOD_CODEC_FILE_READ_FUNC read()
Returns:FMOD_CODEC_FILE_READ_FUNC

the value of the read field.

readback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer read(FMOD_CODEC_FILE_READ_FUNCI value)

Sets the specified value to the read field.

seekback to summary
public FMOD_CODEC_FILE_SEEK_FUNC seek()
Returns:FMOD_CODEC_FILE_SEEK_FUNC

the value of the seek field.

seekback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer seek(FMOD_CODEC_FILE_SEEK_FUNCI value)

Sets the specified value to the seek field.

selfback to summary
protected FMOD_CODEC_STATE_FUNCTIONS.Buffer self()

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

Annotations
@Override
sizeback to summary
public FMOD_CODEC_FILE_SIZE_FUNC size()
Returns:FMOD_CODEC_FILE_SIZE_FUNC

the value of the size field.

sizeback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer size(FMOD_CODEC_FILE_SIZE_FUNCI value)

Sets the specified value to the size field.

tellback to summary
public FMOD_CODEC_FILE_TELL_FUNC tell()
Returns:FMOD_CODEC_FILE_TELL_FUNC

the value of the tell field.

tellback to summary
public FMOD_CODEC_STATE_FUNCTIONS.Buffer tell(FMOD_CODEC_FILE_TELL_FUNCI value)

Sets the specified value to the tell field.