aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/stream.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/common/stream.h b/common/stream.h
index 99dcd8fa6e..52567e350e 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -391,7 +391,7 @@ public:
/**
* This is a ReadStream mixin subclass which adds non-endian read
- * methods whose endianness is set du the stream creation.
+ * methods whose endianness is set during the stream creation.
*/
class ReadStreamEndian : virtual public ReadStream {
private:
@@ -421,6 +421,15 @@ public:
}
};
+/**
+ * This is a SeekableReadStream subclass which adds non-endian read
+ * methods whose endianness is set during the stream creation.
+ */
+class SeekableReadStreamEndian : public SeekableReadStream, public ReadStreamEndian {
+public:
+ SeekableReadStreamEndian(bool bigEndian) : ReadStreamEndian(bigEndian) {}
+};
+
} // End of namespace Common