Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::IParser Class Referenceabstract

Packet parser interface. More...

#include <iparser.h>

Inheritance diagram for roc::packet::IParser:

Public Member Functions

virtual bool parse (Packet &packet, const core::Slice< uint8_t > &buffer)=0
 Parse packet from buffer. More...
 

Detailed Description

Packet parser interface.

Definition at line 22 of file iparser.h.

Member Function Documentation

virtual bool roc::packet::IParser::parse ( Packet packet,
const core::Slice< uint8_t > &  buffer 
)
pure virtual

Parse packet from buffer.

Remarks
Parses input buffer and fills packet. If the packet payload contains an inner packet, calls the inner parser as well.
Returns
true if the packet was successfully parsed or false if the packet is invalid.

Implemented in roc::fec::Parser< PayloadID, Type, Pos >, and roc::rtp::Parser.


The documentation for this class was generated from the following file: