TSDuck v3.43-4509
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::FECPayloadId Class Reference

Representation of the FEC Payload ID in FLUTE headers. More...

#include <tsFECPayloadId.h>

Inheritance diagram for ts::FECPayloadId:
Collaboration diagram for ts::FECPayloadId:

Public Member Functions

 FECPayloadId ()=default
 Default constructor.
 
void clear ()
 Clear the content of a structure.
 
bool deserialize (uint8_t fec_encoding_id, const uint8_t *&addr, size_t &size)
 Deserialize the structure from a binary area.
 
virtual UString toString () const override
 Convert to a string object.
 

Public Attributes

size_t encoding_symbol_id = 0
 Encoding Symbol ID (FEC Encoding ID 0 and 130, RFC 3695, section 2.1).
 
uint8_t fec_encoding_id = 0
 FEC Encoding ID which was used to parse the structure (not part of the structore).
 
size_t source_block_number = 0
 SBN, Source Block Number (FEC Encoding ID 0 and 130, RFC 3695, section 2.1).
 
bool valid = false
 The information was successfully parsed.
 

Detailed Description

Representation of the FEC Payload ID in FLUTE headers.

See also
IETF RFC 5775, section 2

If a file is not content-encoded, the transfer length is the same as the file length.

Member Function Documentation

◆ deserialize()

bool ts::FECPayloadId::deserialize ( uint8_t  fec_encoding_id,
const uint8_t *&  addr,
size_t &  size 
)

Deserialize the structure from a binary area.

Parameters
[in]fec_encoding_idFEC Encoding ID, required to interpret the format of the binary area.
[in,out]addrAddress of binary area. Updated to point after the structure.
[in,out]sizeSize of binary area. Updated with remaining size after deserializing the structure.
Returns
True on success, false on error. Same as valid field.

◆ toString()

virtual UString ts::FECPayloadId::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.


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