diff options
author | Johannes Schickel | 2009-08-17 10:48:03 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-17 10:48:03 +0000 |
commit | b0a5ec8947be27ba8fb99a17f0da905994bd7cd6 (patch) | |
tree | d6abf0fa53a0ba6e65e86eccb58018df1a56a190 /common/stream.h | |
parent | 90336c88acfec04f48c9710e9dfae55f074905eb (diff) | |
download | scummvm-rg350-b0a5ec8947be27ba8fb99a17f0da905994bd7cd6.tar.gz scummvm-rg350-b0a5ec8947be27ba8fb99a17f0da905994bd7cd6.tar.bz2 scummvm-rg350-b0a5ec8947be27ba8fb99a17f0da905994bd7cd6.zip |
- Add note about that modifing the parent stream will mess up SeekableSubReadStream and SeekableSubReadStreamEndian.
- Link to SubReadStream documentation from SeekableSubReadStream and SeekableSubReadStreamEndian.
svn-id: r43465
Diffstat (limited to 'common/stream.h')
-rw-r--r-- | common/stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h index 9b03c20bd2..86e8e71134 100644 --- a/common/stream.h +++ b/common/stream.h @@ -400,6 +400,7 @@ public: /** * SubReadStream provides access to a ReadStream restricted to the range * [currentPosition, currentPosition+end). + * * Manipulating the parent stream directly /will/ mess up a substream. * Likewise, manipulating two substreams of a parent stream will cause them to * step on each others toes. @@ -434,6 +435,9 @@ public: * SeekableSubReadStream provides access to a SeekableReadStream restricted to * the range [begin, end). * The same caveats apply to SeekableSubReadStream as do to SeekableReadStream. + * + * Manipulating the parent stream directly /will/ mess up a substream. + * @see SubReadStream */ class SeekableSubReadStream : public SubReadStream, public SeekableReadStream { protected: @@ -451,6 +455,9 @@ public: /** * This is a wrapper around SeekableSubReadStream, but it adds non-endian * read methods whose endianness is set on the stream creation. + * + * Manipulating the parent stream directly /will/ mess up a substream. + * @see SubReadStream */ class SeekableSubReadStreamEndian : public SeekableSubReadStream { public: |