|
VMime
|
#include <inputStreamStringAdapter.hpp>


Public Member Functions | |
| inputStreamStringAdapter (const string &buffer) | |
| inputStreamStringAdapter (const string &buffer, const size_t begin, const size_t end) | |
| bool | eof () const |
| void | reset () |
| size_t | read (byte_t *const data, const size_t count) |
| size_t | skip (const size_t count) |
| size_t | getPosition () const |
| void | seek (const size_t pos) |
Public Member Functions inherited from stream | |
| virtual | ~stream () |
| virtual size_t | getBlockSize () |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
An adapter class for string input.
| inputStreamStringAdapter | ( | const string & | buffer | ) |
|
virtual |
Test for end of stream (no more data to read).
Implements inputStream.
|
virtual |
Returns the current position in this stream.
Implements seekableInputStream.
Read data from the stream.
| data | will receive the data read |
| count | maximum number of bytes to read |
Implements inputStream.
References vmime::count(), and vmime::dynamicCast().
|
virtual |
Set the read pointer to the beginning of the stream.
Implements inputStream.
Sets the position, measured from the beginning of this stream, at which the next read occurs.
| pos | the offset position, measured in bytes from the beginning of the stream, at which to set the stream pointer. |
Implements seekableInputStream.
References vmime::dynamicCast().
Skip a number of bytes.
| count | maximum number of bytes to ignore |
Implements inputStream.
References vmime::count(), and vmime::dynamicCast().