Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Public Member Functions | List of all members
transport::protocol::fec::BlockCode Class Reference

#include <rs.h>

Inheritance diagram for transport::protocol::fec::BlockCode:
Inheritance graph
[legend]
Collaboration diagram for transport::protocol::fec::BlockCode:
Collaboration graph
[legend]

Public Member Functions

 BlockCode (uint32_t k, uint32_t n, uint32_t seq_offset, struct fec_parms *code, rs &params)
 
bool addRepairSymbol (const fec::buffer &packet, uint32_t i, uint32_t offset=0)
 
bool addSourceSymbol (const fec::buffer &packet, uint32_t i, uint32_t offset=0)
 
std::size_t length ()
 
uint32_t getN ()
 
uint32_t getK ()
 
void clear ()
 

Detailed Description

This class models the source block itself.

Member Function Documentation

◆ addRepairSymbol()

bool transport::protocol::fec::BlockCode::addRepairSymbol ( const fec::buffer &  packet,
uint32_t  i,
uint32_t  offset = 0 
)

Add a repair symbol to the dource block.

◆ addSourceSymbol()

bool transport::protocol::fec::BlockCode::addSourceSymbol ( const fec::buffer &  packet,
uint32_t  i,
uint32_t  offset = 0 
)

Add a source symbol to the source block.

◆ clear()

void transport::protocol::fec::BlockCode::clear ( )

Clear source block

◆ getK()

uint32_t transport::protocol::fec::BlockCode::getK ( )
inline

Get K

◆ getN()

uint32_t transport::protocol::fec::BlockCode::getN ( )
inline

Get N

◆ length()

std::size_t transport::protocol::fec::BlockCode::length ( )
inline

Get current length of source block.


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