Panda3D
|
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. More...
Public Member Functions | |
__init__ () | |
__init__ (object source) | |
clearData () | |
Empties the buffer. More... | |
object | getData () |
Returns the contents of the data stream as a string. More... | |
int | getDataSize () |
Returns the number of characters available to be read from the data stream. More... | |
setData (object data) | |
![]() | |
flush () | |
![]() | |
int | get () |
seekg (Streamoff pos) | |
seekg (Streamoff off, IosBase::Seekdir dir) | |
Streamoff | tellg () |
![]() | |
bool | bad () |
clear () | |
bool | eof () |
bool | fail () |
bool | good () |
![]() | |
flush () | |
put (char c) | |
seekp (Streamoff pos) | |
seekp (Streamoff off, IosBase::Seekdir dir) | |
Streamoff | tellp () |
Public Attributes | |
object | data |
Returns the contents of the data stream as a string. More... | |
Additional Inherited Members | |
![]() | |
enum | Iostate |
enum | Openmode |
enum | Seekdir { beg = 0, cur = 1, end = 2 } |
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.
__init__ | ( | ) |
__init__ | ( | object | source | ) |
clearData | ( | ) |
Empties the buffer.
object getData | ( | ) |
Returns the contents of the data stream as a string.
int getDataSize | ( | ) |
Returns the number of characters available to be read from the data stream.
setData | ( | object | data | ) |
object data |
Returns the contents of the data stream as a string.