TSDuck v3.38-3707
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::TSFuzzingArgs Class Reference

Command line arguments for transport stream packets fuzzing. More...

#include <tsTSFuzzingArgs.h>

Collaboration diagram for ts::TSFuzzingArgs:

Public Member Functions

 TSFuzzingArgs ()=default
 Constructor.
 
void defineArgs (Args &args)
 Add command line option definitions in an Args.
 
bool loadArgs (DuckContext &duck, Args &args)
 Load arguments from command line.
 

Public Attributes

PIDSet pids {}
 PID values which can be corrupted.
 
Fraction< uint32_t > probability = 0
 Probability of corrupting a byte in the stream.
 
ByteBlock seed {}
 Seed for the PRNG, required for reproducibility.
 
bool sync_byte = false
 May corrupt the 0x47 sync byte in TS packets.
 

Detailed Description

Command line arguments for transport stream packets fuzzing.

Member Function Documentation

◆ defineArgs()

void ts::TSFuzzingArgs::defineArgs ( Args args)

Add command line option definitions in an Args.

Parameters
[in,out]argsCommand line arguments to update.

◆ loadArgs()

bool ts::TSFuzzingArgs::loadArgs ( DuckContext duck,
Args args 
)

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

Parameters
[in,out]duckTSDuck execution context.
[in,out]argsCommand line arguments.
Returns
True on success, false on error in argument line.

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