12 #ifndef ROC_FEC_IBLOCK_ENCODER_H_
13 #define ROC_FEC_IBLOCK_ENCODER_H_
37 virtual bool begin(
size_t sblen,
size_t rblen,
size_t payload_size) = 0;
56 virtual void end() = 0;
FEC block encoder interface.
virtual size_t alignment() const =0
Get buffer alignment requirement.
virtual void end()=0
Finish block.
virtual bool begin(size_t sblen, size_t rblen, size_t payload_size)=0
Start block.
virtual void fill()=0
Fill all repair packets in current block.
virtual size_t max_block_length() const =0
Get the maximum number of encoding symbols for the scheme being used.
virtual void set(size_t index, const core::Slice< uint8_t > &buffer)=0
Store source or repair packet buffer for current block.
Commonly used types and functions.