panda3d.core.SubStream

from panda3d.core import SubStream
class SubStream

Bases: iostream

Combined ISubStream and OSubStream for bidirectional I/O.

Inheritance diagram

Inheritance diagram of SubStream

__init__() → None
__init__(nested: StreamWrapper, start: streamoff, end: streamoff, append: bool) → None
open(nested: StreamWrapper, start: streamoff, end: streamoff, append: bool) → SubStream

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.

Return type

SubStream

close() → SubStream

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

Return type

SubStream