PoDoFo 0.9.20
Public Member Functions | Protected Member Functions | List of all members
PoDoFo::OutputStream Class Referenceabstract

#include <OutputStream.h>

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

Public Member Functions

void Write (char ch)
 
void Write (const std::string_view &view)
 
void Write (const char *buffer, size_t size)
 

Protected Member Functions

virtual void checkWrite () const
 

Detailed Description

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

Member Function Documentation

◆ checkWrite()

void OutputStream::checkWrite ( ) const
protectedvirtual

Optional checks before writing By default does nothing

◆ Write() [1/3]

void OutputStream::Write ( char  ch)

Write the character in the device

Parameters
chthe character to wrte

◆ 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