12 #ifndef ROC_PACKET_ICOMPOSER_H_
13 #define ROC_PACKET_ICOMPOSER_H_
58 virtual bool pad(
Packet& packet,
size_t padding_size) = 0;
Packet composer interface.
virtual bool align(core::Slice< uint8_t > &buffer, size_t header_size, size_t payload_alignment)=0
Adjust buffer to align payload.
virtual bool pad(Packet &packet, size_t padding_size)=0
Pad packet.
virtual bool prepare(Packet &packet, core::Slice< uint8_t > &buffer, size_t payload_size)=0
Prepare buffer for composing a packet.
virtual bool compose(Packet &packet)=0
Compose packet to buffer.