12 #ifndef ROC_PACKET_INTERLEAVER_H_
13 #define ROC_PACKET_INTERLEAVER_H_
Memory allocator interface.
Base class for non-copyable objects.
Interleaves packets to transmit them in pseudo random order.
void flush()
Send all buffered packets to output writer.
Interleaver(IWriter &writer, core::IAllocator &allocator, size_t block_size)
Initialize.
size_t block_size() const
Maximum delay between writing packet and moment we get it in output in terms of packets number.
virtual void write(const PacketPtr &packet)
Write next packet.
bool valid() const
Check if object is successfully constructed.
Memory allocator interface.