diff options
| author | Vincent Richard <[email protected]> | 2004-12-16 10:49:55 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-12-16 10:49:55 +0100 |
| commit | 0dbc72f835605aa17510ad8e9f9ecaa0d974fb06 (patch) | |
| tree | 5caac322da63fd3a7fa7bf76141daef3a3d7d4be /src/utility/stream.hpp | |
| parent | Working on 'maildir' implementation. (diff) | |
| download | vmime-0dbc72f835605aa17510ad8e9f9ecaa0d974fb06.tar.gz vmime-0dbc72f835605aa17510ad8e9f9ecaa0d974fb06.zip | |
Added skip() method on inputStream.
Diffstat (limited to 'src/utility/stream.hpp')
| -rw-r--r-- | src/utility/stream.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utility/stream.hpp b/src/utility/stream.hpp index 8f8de54c..a34e6153 100644 --- a/src/utility/stream.hpp +++ b/src/utility/stream.hpp @@ -97,6 +97,13 @@ public: * @return number of bytes read */ virtual const size_type read(value_type* const data, const size_type count) = 0; + + /** Skip a number of bytes. + * + * @param count maximum number of bytes to ignore + * @return number of bytes skipped + */ + virtual const size_type skip(const size_type count) = 0; }; @@ -179,6 +186,7 @@ public: const bool eof() const; void reset(); const size_type read(value_type* const data, const size_type count); + const size_type skip(const size_type count); private: @@ -199,6 +207,7 @@ public: const bool eof() const; void reset(); const size_type read(value_type* const data, const size_type count); + const size_type skip(const size_type count); private: @@ -223,6 +232,7 @@ public: const bool eof() const; void reset(); const size_type read(value_type* const data, const size_type count); + const size_type skip(const size_type count); private: @@ -248,6 +258,7 @@ public: const bool eof() const; void reset(); const size_type read(value_type* const data, const size_type count); + const size_type skip(const size_type count); private: |
