From 0dbc72f835605aa17510ad8e9f9ecaa0d974fb06 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 16 Dec 2004 09:49:55 +0000 Subject: Added skip() method on inputStream. --- src/utility/stream.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/utility/stream.hpp') 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: -- cgit