Intermediate abstract class to help implementing std::ostream.
More...
#include <tsAbstractOutputStream.h>
|
|
using | SuperClass = std::basic_ostream< char > |
| | Explicit reference to the public superclass.
|
| |
|
|
static constexpr size_t | DEFAULT_STREAM_BUFFER_SIZE = 1024 |
| | Default stream buffer size in bytes.
|
| |
|
| virtual bool | writeStreamBuffer (const void *addr, size_t size)=0 |
| | Write buffered data to underlying output devicen whatever it is.
|
| |
Intermediate abstract class to help implementing std::ostream.
◆ AbstractOutputStream()
Constructor.
- Parameters
-
| [in] | bufferSize | Buffer size in bytes. |
◆ writeStreamBuffer()
| virtual bool ts::AbstractOutputStream::writeStreamBuffer |
( |
const void * |
addr, |
|
|
size_t |
size |
|
) |
| |
|
protectedpure virtual |
Write buffered data to underlying output devicen whatever it is.
Must be implemented by subclasses.
- Parameters
-
| [in] | addr | Buffered data address. |
| [in] | size | Buffered data size in bytes. |
- Returns
- True on success, false on error.
Implemented in ts::ForkPipe, and ts::TextFormatter.
The documentation for this class was generated from the following file: