Package org.lwjgl.util.opus
Class OGGPacket
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.opus.OGGPacket
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class OGGPacket extends org.lwjgl.system.StructLayout
struct ogg_packet { unsigned char * packet; long bytes; long b_o_s; long e_o_s; ogg_int64_t granulepos; ogg_int64_tpacketno(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOGGPacket.BufferAn array ofOGGPacketstructs.
-
Constructor Summary
Constructors Constructor Description OGGPacket(java.nio.ByteBuffer container)Creates aOGGPacketinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longb_o_s()longbytes()static OGGPacketcreate(long address)Returns a newOGGPacketinstance for the specified memory address.static OGGPacket.Buffercreate(long address, int capacity)Create aOGGPacket.Bufferinstance at the specified memory.static OGGPacketcreateSafe(long address)static OGGPacket.BuffercreateSafe(long address, int capacity)longe_o_s()longgranulepos()static longnb_o_s(long struct)Unsafe version ofb_o_s().static longnbytes(long struct)Unsafe version ofbytes().static longne_o_s(long struct)Unsafe version ofe_o_s().static longngranulepos(long struct)Unsafe version ofgranulepos().static java.nio.ByteBuffernpacket(long struct)Unsafe version ofpacket.static longnpacketno(long struct)Unsafe version ofpacketno().java.nio.ByteBufferpacket()longpacketno()sequence number for decode; the framing knows where there's a hole in the data, but we need coupling so that the codec (which is in a separate abstraction layer) also knows about the gapintsizeof()
-
-
-
Constructor Detail
-
OGGPacket
public OGGPacket(java.nio.ByteBuffer container)
Creates aOGGPacketinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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()
sequence number for decode; the framing knows where there's a hole in the data, but we need coupling so that the codec (which is in a separate abstraction layer) also knows about the gap
-
create
public static OGGPacket create(long address)
Returns a newOGGPacketinstance for the specified memory address.
-
createSafe
@Nullable public static OGGPacket createSafe(long address)
-
create
public static OGGPacket.Buffer create(long address, int capacity)
Create aOGGPacket.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OGGPacket.Buffer createSafe(long address, int capacity)
-
npacket
public static java.nio.ByteBuffer npacket(long struct)
Unsafe version ofpacket.
-
nbytes
public static long nbytes(long struct)
Unsafe version ofbytes().
-
nb_o_s
public static long nb_o_s(long struct)
Unsafe version ofb_o_s().
-
ne_o_s
public static long ne_o_s(long struct)
Unsafe version ofe_o_s().
-
ngranulepos
public static long ngranulepos(long struct)
Unsafe version ofgranulepos().
-
npacketno
public static long npacketno(long struct)
Unsafe version ofpacketno().
-
-