famouso::mw::afp::defrag::FECHeaderSupport< DCP > Class Template Reference
Policy: Support forward error correction extension header. More...
#include <FECHeaderSupport.h>
Public Member Functions | |
| FECHeaderSupport () | |
| Constructor. | |
| bool | check (const uint8_t *data) |
| Return whether this header can be found at the beginning of data. | |
| flen_t | read_header (const uint8_t *data) |
| Read header from the beginning of data. | |
| bool | occurs () const |
| Returns whether this header was read. | |
| uint32_t | get_red () const |
| Returns the redundancy read from the header. | |
| uint32_t | get_k () const |
| Returns the number of non-redundancy fragments read from the header. | |
| uint32_t | get_len_rest () const |
| Returns of the last non-redundancy fragment's length. | |
Detailed Description
template<class DCP>
class famouso::mw::afp::defrag::FECHeaderSupport< DCP >
Policy: Support forward error correction extension header.
This class is automatically selected as FEC header policy if FECEventReconstructor is used as event reconstruction policy.
Alternative policies: NoFECHeaderSupport
Constructor & Destructor Documentation
| famouso::mw::afp::defrag::FECHeaderSupport< DCP >::FECHeaderSupport | ( | ) | [inline] |
Constructor.
Member Function Documentation
| bool famouso::mw::afp::defrag::FECHeaderSupport< DCP >::check | ( | const uint8_t * | data | ) | [inline] |
Return whether this header can be found at the beginning of data.
| uint32_t famouso::mw::afp::defrag::FECHeaderSupport< DCP >::get_k | ( | ) | const [inline] |
Returns the number of non-redundancy fragments read from the header.
Should be only called if occured() returns true.
| uint32_t famouso::mw::afp::defrag::FECHeaderSupport< DCP >::get_len_rest | ( | ) | const [inline] |
Returns of the last non-redundancy fragment's length.
Should be only called if occured() returns true.
| uint32_t famouso::mw::afp::defrag::FECHeaderSupport< DCP >::get_red | ( | ) | const [inline] |
Returns the redundancy read from the header.
Should be only called if occured() returns true.
| bool famouso::mw::afp::defrag::FECHeaderSupport< DCP >::occurs | ( | ) | const [inline] |
Returns whether this header was read.
| flen_t famouso::mw::afp::defrag::FECHeaderSupport< DCP >::read_header | ( | const uint8_t * | data | ) | [inline] |
Read header from the beginning of data.
- Returns:
- Length of the header. Zero on error.
The documentation for this class was generated from the following file:
- include/mw/afp/defrag/FECHeaderSupport.h