TSDuck Version 3.15-955 (TSDuck - The MPEG Transport Stream Toolkit)
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

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Typedefs

typedef SafePtr< ByteBlock, NullMutex > ts::ByteBlockPtr
 Safe pointer for ByteBlock, not thread-safe.
 
typedef SafePtr< ByteBlock, Mutex > ts::ByteBlockPtrMT
 Safe pointer for ByteBlock, thread-safe (MT = multi-thread).
 

Functions

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

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.