12 #ifndef ROC_RTP_COMPOSER_H_
13 #define ROC_RTP_COMPOSER_H_
Base class for non-copyable objects.
Packet composer interface.
virtual bool compose(packet::Packet &packet)
Compose packet to buffer.
virtual bool prepare(packet::Packet &packet, core::Slice< uint8_t > &buffer, size_t payload_size)
Prepare buffer for composing a packet.
virtual bool pad(packet::Packet &packet, size_t padding_size)
Pad packet.
virtual bool align(core::Slice< uint8_t > &buffer, size_t header_size, size_t payload_alignment)
Adjust buffer to align payload.
Composer(packet::IComposer *inner_composer)
Initialization.
Packet composer interface.