SubStream

class SubStream

Bases: iostream

Combined ISubStream and OSubStream for bidirectional I/O.

Inheritance diagram

Inheritance diagram of SubStream

SubStream(void)
explicit SubStream(StreamWrapper *nested, std::streamoff start, std::streamoff end, bool append = false)
SubStream &close(void)

Resets the SubStream to empty, but does not actually close the nested ostream.

SubStream &open(StreamWrapper *nested, std::streamoff start, std::streamoff end, bool append = false)

Starts the SubStream reading and writing from the indicated nested stream, within the indicated range. “end” is the first character outside of the range.

If end is zero, it indicates that the SubStream will continue until the end of the nested stream.