TSDuck v3.38-3699
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsByteBlock.h File Reference

Definition of a generic block of bytes. More...

Classes

class  ts::ByteBlock
 Definition of a generic block of bytes. More...
 

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Typedefs

using ts::ByteBlockList = std::list< ByteBlock >
 List of ByteBlock.
 
using ts::ByteBlockPtr = std::shared_ptr< ByteBlock >
 Safe pointer for ByteBlock.
 
using ts::ByteBlockVector = std::vector< ByteBlock >
 Vector of ByteBlock.
 

Functions

std::ostream & operator<< (std::ostream &strm, const ts::ByteBlock &bb)
 Output operator for ts::ByteBlock on standard binary streams.
 
std::istream & operator>> (std::istream &strm, ts::ByteBlock &bb)
 Input operator for ts::ByteBlock from standard binary streams.
 

Detailed Description

Definition of a generic block of bytes.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  strm,
const ts::ByteBlock bb 
)
inline

Output operator for ts::ByteBlock on standard binary streams.

Parameters
[in,out]strmA standard stream in binary output mode.
[in]bbA byte block.
Returns
A reference to the strm object.

◆ operator>>()

std::istream & operator>> ( std::istream &  strm,
ts::ByteBlock bb 
)
inline

Input operator for ts::ByteBlock from standard binary streams.

Parameters
[in,out]strmA standard stream in binary input mode.
[out]bbA byte block.
Returns
A reference to the strm object.