Package org.lwjgl.fmod
Class FMOD_CODEC_DESCRIPTION.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<FMOD_CODEC_DESCRIPTION.Buffer>
org.lwjgl.system.StructBuffer<FMOD_CODEC_DESCRIPTION,FMOD_CODEC_DESCRIPTION.Buffer>
org.lwjgl.fmod.FMOD_CODEC_DESCRIPTION.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<FMOD_CODEC_DESCRIPTION>,NativeResource,Pointer
- Enclosing class:
FMOD_CODEC_DESCRIPTION
public static class FMOD_CODEC_DESCRIPTION.Buffer
extends StructBuffer<FMOD_CODEC_DESCRIPTION,FMOD_CODEC_DESCRIPTION.Buffer>
implements NativeResource
An array of
FMOD_CODEC_DESCRIPTION structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newFMOD_CODEC_DESCRIPTION.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintapiversion(int value) Sets the specified value to theapiversionfield.close$()close$(FMOD_CODEC_CLOSE_CALLBACKI value) Sets the specified value to theclosefield.intdefaultasstream(int value) Sets the specified value to thedefaultasstreamfield.Sets the specified value to thegetlengthfield.Sets the specified value to thegetpositionfield.Sets the specified value to thegetwaveformatfield.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.open()open(FMOD_CODEC_OPEN_CALLBACKI value) Sets the specified value to theopenfield.read()read(FMOD_CODEC_READ_CALLBACKI value) Sets the specified value to thereadfield.Sets the specified value to thesetpositionfield.Sets the specified value to thesoundcreatefield.inttimeunits(int value) Sets the specified value to thetimeunitsfield.intversion()version(int value) Sets the specified value to theversionfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newFMOD_CODEC_DESCRIPTION.Bufferinstance 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_DESCRIPTION.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
apiversion
public int apiversion()- Returns:
- the value of the
apiversionfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
version
public int version()- Returns:
- the value of the
versionfield.
-
defaultasstream
public int defaultasstream()- Returns:
- the value of the
defaultasstreamfield.
-
timeunits
public int timeunits()- Returns:
- the value of the
timeunitsfield.
-
open
- Returns:
- the value of the
openfield.
-
close$
- Returns:
- the value of the
closefield.
-
read
- Returns:
- the value of the
readfield.
-
getlength
- Returns:
- the value of the
getlengthfield.
-
setposition
- Returns:
- the value of the
setpositionfield.
-
getposition
- Returns:
- the value of the
getpositionfield.
-
soundcreate
- Returns:
- the value of the
soundcreatefield.
-
getwaveformat
- Returns:
- the value of the
getwaveformatfield.
-
apiversion
Sets the specified value to theapiversionfield. -
name
Sets the address of the specified encoded string to thenamefield. -
version
Sets the specified value to theversionfield. -
defaultasstream
Sets the specified value to thedefaultasstreamfield. -
timeunits
Sets the specified value to thetimeunitsfield. -
open
Sets the specified value to theopenfield. -
close$
Sets the specified value to theclosefield. -
read
Sets the specified value to thereadfield. -
getlength
Sets the specified value to thegetlengthfield. -
setposition
Sets the specified value to thesetpositionfield. -
getposition
Sets the specified value to thegetpositionfield. -
soundcreate
Sets the specified value to thesoundcreatefield. -
getwaveformat
Sets the specified value to thegetwaveformatfield.
-