TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::AbstractWriteStreamInterface Class Referenceabstract

Abstract interface to write raw data on a stream. More...

#include <tsAbstractWriteStreamInterface.h>

Inheritance diagram for ts::AbstractWriteStreamInterface:

Public Member Functions

virtual bool writeStream (const void *addr, size_t size, size_t &written_size, Report &report)=0
 Write data to the stream.
 

Detailed Description

Abstract interface to write raw data on a stream.

Member Function Documentation

◆ writeStream()

virtual bool ts::AbstractWriteStreamInterface::writeStream ( const void *  addr,
size_t  size,
size_t &  written_size,
Report report 
)
pure virtual

Write data to the stream.

All bytes are written to the stream, blocking or retrying when necessary.

Parameters
[in]addrAddress of the data to write.
[in]sizeSize in bytes of the data to write.
[out]written_sizeActually written size in bytes. Can be less than size in case of error in the middle of the write.
[in,out]reportWhere to report errors.
Returns
True on success, false on error.

Implemented in ts::ForkPipe.


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