PoDoFo 0.9.20
|
#include <InputStream.h>
Public Member Functions | |
void | Read (char *buffer, size_t size) |
size_t | Read (char *buffer, size_t size, bool &eof) |
char | ReadChar () |
bool | Read (char &ch) |
Protected Member Functions | |
virtual size_t | readBuffer (char *buffer, size_t size, bool &eof)=0 |
virtual bool | readChar (char &ch) |
virtual void | checkRead () const |
An interface for reading blocks of data from a data source. It supports non-blocking read operations
|
protectedvirtual |
Optional checks before reading By default does nothing
Reimplemented in PoDoFo::InputStreamDevice.
bool InputStream::Read | ( | char & | ch | ) |
Get next char from stream.
ch | the read character |
void InputStream::Read | ( | char * | buffer, |
size_t | size ) |
Read data from the device
buffer | a pointer to the data buffer |
size | length of the output buffer |
size_t InputStream::Read | ( | char * | buffer, |
size_t | size, | ||
bool & | eof ) |
Read data from the device
buffer | a pointer to the data buffer |
size | length of the output buffer |
eof | stream encountered EOF during the read |
|
protectedpure virtual |
Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes
Implemented in PoDoFo::NullStreamDevice, PoDoFo::PdfAESInputStream, PoDoFo::PdfCanvasInputDevice, and PoDoFo::PdfRC4InputStream.
char InputStream::ReadChar | ( | ) |
Get next char from stream.
|
protectedvirtual |
Read the next char in stream. /returns true if success, false if EOF
Reimplemented in PoDoFo::NullStreamDevice, and PoDoFo::PdfCanvasInputDevice.