Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::XrTraverser Class Reference

XR packet traverser. More...

#include <xr_traverser.h>

Classes

class  Iterator
 Packet iterator. More...
 

Public Member Functions

 XrTraverser (const core::Slice< uint8_t > &buf)
 Initialize traverser. It will parse and iterate provided buffer. More...
 
bool parse ()
 Parse packet from buffer. More...
 
Iterator iter () const
 Construct iterator. More...
 
size_t blocks_count () const
 Get number of XR blocks in packet. More...
 
const header::XrPacketpacket () const
 Get XR packet. More...
 

Detailed Description

XR packet traverser.

Definition at line 23 of file xr_traverser.h.

Constructor & Destructor Documentation

◆ XrTraverser()

roc::rtcp::XrTraverser::XrTraverser ( const core::Slice< uint8_t > &  buf)
explicit

Initialize traverser. It will parse and iterate provided buffer.

Member Function Documentation

◆ blocks_count()

size_t roc::rtcp::XrTraverser::blocks_count ( ) const

Get number of XR blocks in packet.

◆ iter()

Iterator roc::rtcp::XrTraverser::iter ( ) const

Construct iterator.

Precondition
Can be used if parse() returned true.

◆ packet()

const header::XrPacket& roc::rtcp::XrTraverser::packet ( ) const

Get XR packet.

◆ parse()

bool roc::rtcp::XrTraverser::parse ( )

Parse packet from buffer.


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