#include <OggPacket.h>
Inheritance diagram for OggPacket:
Public Member Functions | |
OggPacket (void) | |
OggPacket (unsigned char *inPackData, unsigned long inPacketSize, bool inIsTruncated, bool inIsContinuation) | |
virtual | ~OggPacket (void) |
virtual OggPacket * | clone () |
Does a deep copy of this packet and returns a new one for you to keep. | |
unsigned long | packetSize () const |
Returns the size of the contained packet. | |
unsigned char * | packetData () |
Returns a pointer to the internal packet buffer. | |
bool | isTruncated () const |
Returns whether this packet is truncated. | |
bool | isContinuation () const |
Returns whether this packet is continued from another one. | |
void | setIsTruncated (bool inIsTruncated) |
Set the truncated flag on this packet. | |
void | setIsContinuation (bool inIsContinuation) |
Set the continuation flag on this packet. | |
void | setPacketSize (unsigned long inPacketSize) |
Set the size of this packet. | |
void | setPacketData (unsigned char *inPacketData) |
Give a buffer to kept as the internal packet buffer. | |
virtual void | merge (const OggPacket *inMorePacket) |
Merges this packet to another one you pass it. | |
string | toPackDumpString () |
Turns the packet into a hex dump string. | |
Static Public Attributes | |
const unsigned long | HEX_DUMP_LINE_LENGTH = 16 |
Protected Member Functions | |
string | dumpNCharsToString (unsigned char *inStartPoint, unsigned long inNumChars) |
string | padField (string inString, unsigned long inPadWidth, unsigned char inPadChar) |
Protected Attributes | |
unsigned long | mPacketSize |
unsigned char * | mPacketData |
bool | mIsTruncated |
bool | mIsContinuation |
Private Member Functions | |
OggPacket & | operator= (const OggPacket &other) |
OggPacket (const OggPacket &other) |
|
Definition at line 36 of file OggPacket.cpp. References false. Referenced by clone(). |
|
Definition at line 47 of file OggPacket.cpp. |
|
Definition at line 70 of file OggPacket.cpp. |
|
|
|
Does a deep copy of this packet and returns a new one for you to keep.
Reimplemented in StampedOggPacket. Definition at line 57 of file OggPacket.cpp. References mIsContinuation, mIsTruncated, mPacketData, mPacketSize, and OggPacket(). Referenced by FLACHeaderTweaker::getHeader(), and AnxStreamMapper::handleAnxVersion_2_0(). |
Here is the call graph for this function:
|
Definition at line 138 of file OggPacket.cpp. References HEX_DUMP_LINE_LENGTH, and padField(). Referenced by toPackDumpString(). |
Here is the call graph for this function:
|
Returns whether this packet is continued from another one.
Definition at line 185 of file OggPacket.cpp. Referenced by OggPacketiser::acceptOggPage(), OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
|
Returns whether this packet is truncated.
Definition at line 182 of file OggPacket.cpp. Referenced by OggValidationState::acceptOggPage(), OggPacketiser::acceptOggPage(), OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
|
Merges this packet to another one you pass it.
Definition at line 210 of file OggPacket.cpp. References mIsContinuation, mIsTruncated, mPacketData, and mPacketSize. |
|
|
|
|
|
Definition at line 130 of file OggPacket.cpp. Referenced by dumpNCharsToString(), and toPackDumpString(). |
|
Set the continuation flag on this packet.
|
|
Set the truncated flag on this packet.
|
|
Give a buffer to kept as the internal packet buffer. This function accepts responsibility for the pointer it is passed, and it deletes it in the destructor. Note that you should reset the checksum on the Ogg page via OggPage::computeAndSetCRCChecksum(), otherwise you'll end up with an invalid page. (Arguably this should automatically be done for you, but that's the way it is for now.) Definition at line 205 of file OggPacket.cpp. References mPacketData. Referenced by FLACMetadataSplitter::convertToStampedPacket(), and TheoraDecoder::simulateOldOggPacket(). |
|
Set the size of this packet.
Definition at line 196 of file OggPacket.cpp. References mPacketSize. |
|
Turns the packet into a hex dump string. NOTE::: ShOuld be reworked. Definition at line 78 of file OggPacket.cpp. References dumpNCharsToString(), HEX_DUMP_LINE_LENGTH, mPacketData, and padField(). Referenced by OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
Here is the call graph for this function:
|
Definition at line 46 of file OggPacket.h. Referenced by dumpNCharsToString(), and toPackDumpString(). |
|
Definition at line 87 of file OggPacket.h. |
|
Definition at line 86 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), and merge(). |
|
Definition at line 84 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), merge(), setPacketData(), and toPackDumpString(). |
|
Definition at line 83 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), merge(), and setPacketSize(). |