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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
apiversion
(int value) Sets the specified value to theapiversion
field.close$()
close$
(FMOD_CODEC_CLOSE_CALLBACKI value) Sets the specified value to theclose
field.int
defaultasstream
(int value) Sets the specified value to thedefaultasstream
field.Sets the specified value to thegetlength
field.Sets the specified value to thegetposition
field.Sets the specified value to thegetwaveformat
field.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.open()
open
(FMOD_CODEC_OPEN_CALLBACKI value) Sets the specified value to theopen
field.read()
read
(FMOD_CODEC_READ_CALLBACKI value) Sets the specified value to theread
field.Sets the specified value to thesetposition
field.Sets the specified value to thesoundcreate
field.int
timeunits
(int value) Sets the specified value to thetimeunits
field.int
version()
version
(int value) Sets the specified value to theversion
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newFMOD_CODEC_DESCRIPTION.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_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
apiversion
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
version
public int version()- Returns:
- the value of the
version
field.
-
defaultasstream
public int defaultasstream()- Returns:
- the value of the
defaultasstream
field.
-
timeunits
public int timeunits()- Returns:
- the value of the
timeunits
field.
-
open
- Returns:
- the value of the
open
field.
-
close$
- Returns:
- the value of the
close
field.
-
read
- Returns:
- the value of the
read
field.
-
getlength
- Returns:
- the value of the
getlength
field.
-
setposition
- Returns:
- the value of the
setposition
field.
-
getposition
- Returns:
- the value of the
getposition
field.
-
soundcreate
- Returns:
- the value of the
soundcreate
field.
-
getwaveformat
- Returns:
- the value of the
getwaveformat
field.
-
apiversion
Sets the specified value to theapiversion
field. -
name
Sets the address of the specified encoded string to thename
field. -
version
Sets the specified value to theversion
field. -
defaultasstream
Sets the specified value to thedefaultasstream
field. -
timeunits
Sets the specified value to thetimeunits
field. -
open
Sets the specified value to theopen
field. -
close$
Sets the specified value to theclose
field. -
read
Sets the specified value to theread
field. -
getlength
Sets the specified value to thegetlength
field. -
setposition
Sets the specified value to thesetposition
field. -
getposition
Sets the specified value to thegetposition
field. -
soundcreate
Sets the specified value to thesoundcreate
field. -
getwaveformat
Sets the specified value to thegetwaveformat
field.
-