PoDoFo 0.9.20
PoDoFo::NullStreamDevice Class Referencefinal

#include <StreamDevice.h>

Inheritance diagram for PoDoFo::NullStreamDevice:
PoDoFo::StreamDevice PoDoFo::InputStreamDevice PoDoFo::InputStream

Protected Member Functions

size_t readBuffer (char *buffer, size_t size, bool &eof) override
bool readChar (char &ch) override
bool peek (char &ch) const override
Protected Member Functions inherited from PoDoFo::InputStreamDevice
void checkRead () const override

Additional Inherited Members

Public Member Functions inherited from PoDoFo::InputStreamDevice
bool Peek (char &ch) const
Public Member Functions inherited from PoDoFo::InputStream
void Read (char *buffer, size_t size)
size_t Read (char *buffer, size_t size, bool &eof)
char ReadChar ()
bool Read (char &ch)

Detailed Description

An StreamDevice device that does nothing

Member Function Documentation

◆ peek()

bool NullStreamDevice::peek ( char & ch) const
overrideprotectedvirtual

Peek at next char in stream. /returns true if success, false if EOF

Implements PoDoFo::InputStreamDevice.

◆ readBuffer()

size_t NullStreamDevice::readBuffer ( char * buffer,
size_t size,
bool & eof )
overrideprotectedvirtual

Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes

Implements PoDoFo::InputStream.

◆ readChar()

bool NullStreamDevice::readChar ( char & ch)
overrideprotectedvirtual

Read the next char in stream. /returns true if success, false if EOF

Reimplemented from PoDoFo::InputStream.