Package org.lwjgl.util.opus
Class OpusFileCallbacks.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OpusFileCallbacks,OpusFileCallbacks.Buffer>
-
- org.lwjgl.util.opus.OpusFileCallbacks.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OpusFileCallbacks>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OpusFileCallbacks
public static class OpusFileCallbacks.Buffer extends org.lwjgl.system.StructBuffer<OpusFileCallbacks,OpusFileCallbacks.Buffer> implements org.lwjgl.system.NativeResource
An array ofOpusFileCallbacksstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OPCloseFuncclose$()OpusFileCallbacks.Bufferclose$(OPCloseFuncI value)Sets the specified value to theOpusFileCallbacks.close$()field.OPReadFuncread()OpusFileCallbacks.Bufferread(OPReadFuncI value)Sets the specified value to theOpusFileCallbacks.read()field.OPSeekFuncseek()OpusFileCallbacks.Bufferseek(OPSeekFuncI value)Sets the specified value to theOpusFileCallbacks.seek()field.OPTellFunctell()OpusFileCallbacks.Buffertell(OPTellFuncI value)Sets the specified value to theOpusFileCallbacks.tell()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOpusFileCallbacks.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 byOpusFileCallbacks.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 Detail
-
read
public OPReadFunc read()
- Returns:
- the value of the
OpusFileCallbacks.read()field.
-
seek
@Nullable public OPSeekFunc seek()
- Returns:
- the value of the
OpusFileCallbacks.seek()field.
-
tell
@Nullable public OPTellFunc tell()
- Returns:
- the value of the
OpusFileCallbacks.tell()field.
-
close$
@Nullable public OPCloseFunc close$()
- Returns:
- the value of the
OpusFileCallbacks.close$()field.
-
read
public OpusFileCallbacks.Buffer read(OPReadFuncI value)
Sets the specified value to theOpusFileCallbacks.read()field.
-
seek
public OpusFileCallbacks.Buffer seek(@Nullable OPSeekFuncI value)
Sets the specified value to theOpusFileCallbacks.seek()field.
-
tell
public OpusFileCallbacks.Buffer tell(@Nullable OPTellFuncI value)
Sets the specified value to theOpusFileCallbacks.tell()field.
-
close$
public OpusFileCallbacks.Buffer close$(@Nullable OPCloseFuncI value)
Sets the specified value to theOpusFileCallbacks.close$()field.
-
-