Panda3D
Public Member Functions | List of all members
SubStream Class Reference

Combined ISubStream and OSubStream for bidirectional I/O. More...

Inheritance diagram for SubStream:
Iostream Istream Ostream BasicIosChar BasicIosChar IosBase IosBase

Public Member Functions

 __init__ ()
 
 __init__ (StreamWrapper nested, Streamoff start, Streamoff end, bool append)
 
SubStream close ()
 Resets the SubStream to empty, but does not actually close the nested ostream. More...
 
SubStream open (StreamWrapper nested, Streamoff start, Streamoff end, bool append)
 Starts the SubStream reading and writing from the indicated nested stream, within the indicated range. More...
 
- Public Member Functions inherited from Iostream
 flush ()
 
- Public Member Functions inherited from Istream
int get ()
 
 seekg (Streamoff pos)
 
 seekg (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellg ()
 
- Public Member Functions inherited from BasicIosChar
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 
- Public Member Functions inherited from Ostream
 flush ()
 
 put (char c)
 
 seekp (Streamoff pos)
 
 seekp (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellp ()
 

Additional Inherited Members

- Public Types inherited from IosBase
enum  Iostate
 
enum  Openmode
 
enum  Seekdir { beg = 0, cur = 1, end = 2 }
 

Detailed Description

Combined ISubStream and OSubStream for bidirectional I/O.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( StreamWrapper  nested,
Streamoff  start,
Streamoff  end,
bool  append 
)

◆ close()

SubStream close ( )

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

◆ open()

SubStream open ( StreamWrapper  nested,
Streamoff  start,
Streamoff  end,
bool  append 
)

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.