PoDoFo  1.0.0-dev
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
PoDoFo::OutputStream Class Referenceabstract

An interface for writing blocks of data to a data source. More...

#include <OutputStream.h>

Inheritance diagram for PoDoFo::OutputStream:
PoDoFo::PdfStringStream

Public Member Functions

void Write (char ch)
 Write the character in the device. More...
 
void Write (const std::string_view &view)
 Write the view to the OutputStream. More...
 
void Write (const char *buffer, size_t size)
 Write data to the output stream. More...
 
void Flush ()
 

Protected Member Functions

virtual void writeBuffer (const char *buffer, size_t size)=0
 
virtual void flush ()
 
virtual void checkWrite () const
 Optional checks before writing By default does nothing.
 

Static Protected Member Functions

static void WriteBuffer (OutputStream &stream, const char *buffer, size_t size)
 
static void Flush (OutputStream &stream)
 

Detailed Description

An interface for writing blocks of data to a data source.

Member Function Documentation

◆ Write() [1/3]

void OutputStream::Write ( char  ch)

Write the character in the device.

Parameters
chthe character to write

◆ Write() [2/3]

void OutputStream::Write ( const char *  buffer,
size_t  size 
)

Write data to the output stream.

Parameters
bufferthe data is read from this buffer
lenthe size of the buffer

◆ Write() [3/3]

void PoDoFo::OutputStream::Write ( const std::string_view &  view)

Write the view to the OutputStream.

Parameters
viewthe view to be written

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