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

◆ parse()

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::rtp::Parser, roc::rtcp::Parser, and roc::fec::Parser< PayloadID, Type, Pos >.


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