|
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 | |
| StringStream () | |
| StringStream (string source) | |
| This version of the constructor preloads the buffer with the indicated data. | |
| clearData () | |
| Empties the buffer. | |
| string | getData () |
| Returns the contents of the data stream as a string. | |
| unsigned int | getDataSize () |
| Returns the number of characters available to be read from the data stream. | |
| setData (string data) | |
| Replaces the contents of the data stream. | |
| swapData (vectorunsigned char data) | |
| Swaps the indicated buffer for the contents of the internal buffer. | |
A bi-directional stream object that reads and writes data to an internal buffer, which can be retrieved and/or set as a string.
| StringStream | ( | ) |
| StringStream | ( | string | source | ) |
This version of the constructor preloads the buffer with the indicated data.
| clearData | ( | ) |
Empties the buffer.
| string getData | ( | ) |
Returns the contents of the data stream as a string.
| unsigned int getDataSize | ( | ) |
Returns the number of characters available to be read from the data stream.
| setData | ( | string | data | ) |
Replaces the contents of the data stream.
This implicitly reseeks to 0.
| swapData | ( | vectorunsigned char | data | ) |
Swaps the indicated buffer for the contents of the internal buffer.
1.7.3