TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::mcast::FECPayloadId Class Reference

#include <tsmcastFECPayloadId.h>

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

Public Member Functions

 FECPayloadId ()=default
void clear ()
bool deserialize (uint8_t fec_encoding_id, const uint8_t *&addr, size_t &size)
virtual UString toString () const override

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.

Constructor & Destructor Documentation

◆ FECPayloadId()

ts::mcast::FECPayloadId::FECPayloadId ( )
default

Default constructor.

Member Function Documentation

◆ clear()

void ts::mcast::FECPayloadId::clear ( )

Clear the content of a structure.

◆ deserialize()

bool ts::mcast::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::mcast::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: