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. More...
Public Member Functions | |
__init__ () | |
__init__ (str source) | |
This version of the constructor preloads the buffer with the indicated data. More... | |
clearData () | |
Empties the buffer. More... | |
str | getData () |
Returns the contents of the data stream as a string. More... | |
size_t | getDataSize () |
Returns the number of characters available to be read from the data stream. More... | |
setData (str data) | |
Replaces the contents of the data stream. This implicitly reseeks to 0. More... | |
swapData (VectorUnsignedChar data) | |
Swaps the indicated buffer for the contents of the internal buffer. More... | |
![]() | |
flush () | |
![]() | |
int | get () |
seekg (Ios::Streamoff off, IosBase::Seekdir dir) | |
seekg (Ios::Streampos pos) | |
Ios::Streampos | tellg () |
![]() | |
bool | bad () |
clear () | |
bool | eof () |
bool | fail () |
bool | good () |
![]() | |
flush () | |
put (char c) | |
seekp (Ios::Streamoff off, IosBase::Seekdir dir) | |
seekp (Ios::Streampos pos) | |
Ios::Streampos | tellp () |
Additional Inherited Members | |
![]() | |
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.
__init__ | ( | ) |
__init__ | ( | str | source | ) |
This version of the constructor preloads the buffer with the indicated data.
clearData | ( | ) |
Empties the buffer.
str getData | ( | ) |
Returns the contents of the data stream as a string.
size_t getDataSize | ( | ) |
Returns the number of characters available to be read from the data stream.
setData | ( | str | data | ) |
Replaces the contents of the data stream. This implicitly reseeks to 0.
swapData | ( | VectorUnsignedChar | data | ) |
Swaps the indicated buffer for the contents of the internal buffer.