StringStream
from panda3d.core import StringStream
- class StringStream
Bases:
iostream
A bi-directional stream object that reads and writes data to an internal buffer, which can be retrieved and/or set as a string in Python 2 or a bytes object in Python 3.
Inheritance diagram
- __init__(*args, **kwargs)
- data
- getData()
C++ Interface: get_data(const StringStream self)
- /**
Returns the contents of the data stream as a string.
*/
- getDataSize()
C++ Interface: get_data_size(const StringStream self)
- /**
Returns the number of characters available to be read from the data stream.
*/
- get_data()
C++ Interface: get_data(const StringStream self)
- /**
Returns the contents of the data stream as a string.
*/
- get_data_size()
C++ Interface: get_data_size(const StringStream self)
- /**
Returns the number of characters available to be read from the data stream.
*/
- setData()
C++ Interface: set_data(const StringStream self, object data)