Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::fec::Parser< PayloadID, Type, Pos > Class Template Reference

FECFRAME packet parser. More...

#include <parser.h>

Inheritance diagram for roc::fec::Parser< PayloadID, Type, Pos >:
Collaboration diagram for roc::fec::Parser< PayloadID, Type, Pos >:

Public Member Functions

 Parser (packet::IParser *inner_parser)
 Initialization. More...
 
virtual bool parse (packet::Packet &packet, const core::Slice< uint8_t > &buffer)
 Parse packet from buffer. More...
 

Detailed Description

template<class PayloadID, PayloadID_Type Type, PayloadID_Pos Pos>
class roc::fec::Parser< PayloadID, Type, Pos >

FECFRAME packet parser.

Definition at line 25 of file parser.h.

Constructor & Destructor Documentation

◆ Parser()

template<class PayloadID , PayloadID_Type Type, PayloadID_Pos Pos>
roc::fec::Parser< PayloadID, Type, Pos >::Parser ( packet::IParser< PayloadID, Type, Pos > *  inner_parser)
inlineexplicit

Initialization.

Remarks
Parses FECFRAME header or footer and passes the rest to inner_parser if it's not null.

Definition at line 31 of file parser.h.

Member Function Documentation

◆ parse()

template<class PayloadID , PayloadID_Type Type, PayloadID_Pos Pos>
virtual bool roc::fec::Parser< PayloadID, Type, Pos >::parse ( packet::Packet packet,
const core::Slice< uint8_t > &  buffer 
)
inlinevirtual

Parse packet from buffer.

Implements roc::packet::IParser.

Definition at line 36 of file parser.h.


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