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 Ios Ios IosBase IosBase

Public Member Functions

 __init__ ()
 
 __init__ (StreamWrapper nested, Ios::Streampos start, Ios::Streampos end, bool append)
 
SubStream close ()
 Resets the SubStream to empty, but does not actually close the nested ostream. More...
 
SubStream open (StreamWrapper nested, Ios::Streampos start, Ios::Streampos 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. More...
 
- Public Member Functions inherited from Iostream
 flush ()
 
- Public Member Functions inherited from Istream
int get ()
 
 seekg (Ios::Streamoff off, IosBase::Seekdir dir)
 
 seekg (Ios::Streampos pos)
 
Ios::Streampos tellg ()
 
- Public Member Functions inherited from Ios
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 
- Public Member Functions inherited from Ostream
 flush ()
 
 put (char c)
 
 seekp (Ios::Streamoff off, IosBase::Seekdir dir)
 
 seekp (Ios::Streampos pos)
 
Ios::Streampos tellp ()
 

Additional Inherited Members

- Public Types inherited from IosBase
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,
Ios::Streampos  start,
Ios::Streampos  end,
bool  append 
)

◆ close()

SubStream close ( )

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

◆ open()

SubStream open ( StreamWrapper  nested,
Ios::Streampos  start,
Ios::Streampos  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.