|
PoDoFo 1.1.0
|
An StreamDevice device that does nothing. More...
#include <StreamDevice.h>
Public Member Functions | |
| size_t | GetLength () const override |
| size_t | GetPosition () const override |
| bool | Eof () const override |
Public Member Functions inherited from PoDoFo::InputStreamDevice | |
| bool | Peek (char &ch) const |
| Peek at next char in stream. | |
Public Member Functions inherited from PoDoFo::InputStream | |
| void | Read (char *buffer, size_t size) |
| Read data from the device. | |
| size_t | Read (char *buffer, size_t size, bool &eof) |
| Read data from the device. | |
| char | ReadChar () |
| Get next char from stream. | |
| bool | Read (char &ch) |
| Get next char from stream. | |
| void | CopyTo (OutputStream &stream) |
| Copy this stream to another. | |
| void | CopyTo (OutputStream &stream, size_t size) |
| Copy this stream to another. | |
Protected Member Functions | |
| void | writeBuffer (const char *buffer, size_t size) override |
| size_t | readBuffer (char *buffer, size_t size, bool &eof) override |
| Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes. | |
| bool | readChar (char &ch) override |
| Read the next char in stream. | |
| bool | peek (char &ch) const override |
| Peek at next char in stream. | |
| void | seek (ssize_t offset, SeekDirection direction) override |
Protected Member Functions inherited from PoDoFo::StreamDevice | |
| StreamDevice (DeviceAccess access) | |
Protected Member Functions inherited from PoDoFo::InputStreamDevice | |
| InputStreamDevice (bool init) | |
| void | checkRead () const override |
| Optional checks before reading By default does nothing. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from PoDoFo::StreamDevice | |
| static size_t | SeekPosition (size_t curpos, size_t devlen, ssize_t offset, SeekDirection direction) |
Static Protected Member Functions inherited from PoDoFo::InputStream | |
| static size_t | ReadBuffer (InputStream &stream, char *buffer, size_t size, bool &eof) |
| static bool | ReadChar (InputStream &stream, char &ch) |
An StreamDevice device that does nothing.
Peek at next char in stream.
/returns true if success, false if EOF
Implements PoDoFo::InputStreamDevice.
|
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.
Read the next char in stream.
/returns true if success, false if EOF
Reimplemented from PoDoFo::InputStream.
Implements PoDoFo::OutputStream.