Package org.lwjgl.util.opus
Class OGGPacket
- All Implemented Interfaces:
Pointer
struct ogg_packet {
unsigned char * packet;
long bytes;
long b_o_s;
long e_o_s;
ogg_int64_t granulepos;
ogg_int64_t packetno;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOGGPacket(ByteBuffer container) Creates aOGGPacketinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongb_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 @Nullable OGGPacketcreateSafe(long address) static @Nullable OGGPacket.BuffercreateSafe(long address, int capacity) longe_o_s()longstatic 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 ByteBuffernpacket(long struct) Unsafe version ofpacket.static longnpacketno(long struct) Unsafe version ofpacketno().packet()longpacketno()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PACKET
public static final int PACKETThe struct member offsets. -
BYTES
public static final int BYTESThe struct member offsets. -
B_O_S
public static final int B_O_SThe struct member offsets. -
E_O_S
public static final int E_O_SThe struct member offsets. -
GRANULEPOS
public static final int GRANULEPOSThe struct member offsets. -
PACKETNO
public static final int PACKETNOThe struct member offsets.
-
-
Constructor Details
-
OGGPacket
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
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
packetnofield.
-
create
Returns a newOGGPacketinstance for the specified memory address. -
createSafe
-
create
Create aOGGPacket.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
npacket
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().
-