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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aOGGPacket
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
b_o_s()
long
bytes()
static OGGPacket
create
(long address) Returns a newOGGPacket
instance for the specified memory address.static OGGPacket.Buffer
create
(long address, int capacity) Create aOGGPacket.Buffer
instance at the specified memory.static @Nullable OGGPacket
createSafe
(long address) static @Nullable OGGPacket.Buffer
createSafe
(long address, int capacity) long
e_o_s()
long
static long
nb_o_s
(long struct) Unsafe version ofb_o_s()
.static long
nbytes
(long struct) Unsafe version ofbytes()
.static long
ne_o_s
(long struct) Unsafe version ofe_o_s()
.static long
ngranulepos
(long struct) Unsafe version ofgranulepos()
.static ByteBuffer
npacket
(long struct) Unsafe version ofpacket
.static long
npacketno
(long struct) Unsafe version ofpacketno()
.packet()
long
packetno()
int
sizeof()
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 aOGGPacket
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
. -
packet
- Returns:
- a
ByteBuffer
view of the data pointed to by thepacket
field.
-
bytes
public long bytes()- Returns:
- the value of the
bytes
field.
-
b_o_s
public long b_o_s()- Returns:
- the value of the
b_o_s
field.
-
e_o_s
public long e_o_s()- Returns:
- the value of the
e_o_s
field.
-
granulepos
public long granulepos()- Returns:
- the value of the
granulepos
field.
-
packetno
public long packetno()- Returns:
- the value of the
packetno
field.
-
create
Returns a newOGGPacket
instance for the specified memory address. -
createSafe
-
create
Create aOGGPacket.Buffer
instance 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()
.
-