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 Pointer
Pointer.Default -
Field Summary
Fields inherited from interface 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 StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class 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 Pointer.Default
equals, hashCodeMethods inherited from interface 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
- 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
- Returns:
- the value of the
versionfield.
-
defaultasstream
public int defaultasstream()- Returns:
- the value of the
defaultasstreamfield.
-
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
public FMOD_CODEC_DESCRIPTION.Buffer open(@NativeType("FMOD_CODEC_OPEN_CALLBACK") FMOD_CODEC_OPEN_CALLBACKI value) Sets the specified value to theopenfield. -
close$
public FMOD_CODEC_DESCRIPTION.Buffer close$(@NativeType("FMOD_CODEC_CLOSE_CALLBACK") FMOD_CODEC_CLOSE_CALLBACKI value) Sets the specified value to theclosefield. -
read
public FMOD_CODEC_DESCRIPTION.Buffer read(@NativeType("FMOD_CODEC_READ_CALLBACK") FMOD_CODEC_READ_CALLBACKI value) Sets the specified value to thereadfield. -
getlength
public FMOD_CODEC_DESCRIPTION.Buffer getlength(@NativeType("FMOD_CODEC_GETLENGTH_CALLBACK") FMOD_CODEC_GETLENGTH_CALLBACKI value) Sets the specified value to thegetlengthfield. -
setposition
public FMOD_CODEC_DESCRIPTION.Buffer setposition(@NativeType("FMOD_CODEC_SETPOSITION_CALLBACK") FMOD_CODEC_SETPOSITION_CALLBACKI value) Sets the specified value to thesetpositionfield. -
getposition
public FMOD_CODEC_DESCRIPTION.Buffer getposition(@NativeType("FMOD_CODEC_GETPOSITION_CALLBACK") FMOD_CODEC_GETPOSITION_CALLBACKI value) Sets the specified value to thegetpositionfield. -
soundcreate
public FMOD_CODEC_DESCRIPTION.Buffer soundcreate(@NativeType("FMOD_CODEC_SOUNDCREATE_CALLBACK") FMOD_CODEC_SOUNDCREATE_CALLBACKI value) Sets the specified value to thesoundcreatefield. -
getwaveformat
public FMOD_CODEC_DESCRIPTION.Buffer getwaveformat(@NativeType("FMOD_CODEC_GETWAVEFORMAT_CALLBACK") FMOD_CODEC_GETWAVEFORMAT_CALLBACKI value) Sets the specified value to thegetwaveformatfield.
-