Package org.lwjgl.util.opus
Class OGGPacket.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OGGPacket,OGGPacket.Buffer>
-
- org.lwjgl.util.opus.OGGPacket.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<OGGPacket>,org.lwjgl.system.Pointer
- Enclosing class:
- OGGPacket
public static class OGGPacket.Buffer extends org.lwjgl.system.StructBuffer<OGGPacket,OGGPacket.Buffer>
An array ofOGGPacketstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longb_o_s()longbytes()longe_o_s()longgranulepos()java.nio.ByteBufferpacket()longpacketno()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOGGPacket.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 byOGGPacket.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
-
packet
public java.nio.ByteBuffer packet()
- Returns:
- a
ByteBufferview of the data pointed to by thepacketfield.
-
bytes
public long bytes()
- Returns:
- the value of the
bytesfield.
-
b_o_s
public long b_o_s()
- Returns:
- the value of the
b_o_sfield.
-
e_o_s
public long e_o_s()
- Returns:
- the value of the
e_o_sfield.
-
granulepos
public long granulepos()
- Returns:
- the value of the
granuleposfield.
-
packetno
public long packetno()
- Returns:
- the value of the
OGGPacket.packetno()field.
-
-