Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::Queue Class Reference

Packet queue. More...

#include <queue.h>

Inheritance diagram for roc::packet::Queue:
Collaboration diagram for roc::packet::Queue:

Public Member Functions

virtual ROC_ATTR_NODISCARD status::StatusCode read (PacketPtr &packet)
 Read next packet. More...
 
virtual ROC_ATTR_NODISCARD status::StatusCode write (const PacketPtr &packet)
 Add packet to the queue. More...
 
size_t size () const
 Get number of packets in queue. More...
 

Detailed Description

Packet queue.

Definition at line 25 of file queue.h.

Member Function Documentation

◆ read()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::packet::Queue::read ( PacketPtr packet)
virtual

Read next packet.

Implements roc::packet::IReader.

◆ size()

size_t roc::packet::Queue::size ( ) const

Get number of packets in queue.

◆ write()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::packet::Queue::write ( const PacketPtr packet)
virtual

Add packet to the queue.

Remarks
Adds packet to the end of the queue.

Implements roc::packet::IWriter.


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