# StringStream

from pandac.PandaModules import StringStream

Class : StringStream
Description : A bi-directional stream object that reads and writes data to an internal buffer, which can be retrieved and/or set as a string.

## Inheritance:

StringStream: iostream
iostream: istream ostream
istream: ios
ios: ios_base
ios_base:
ostream: ios

## Methods of StringStream:

clearData
getData
getDataSize
setData
swapData

## Methods of iostream:

flush

## Methods of istream:

get
seekg
tellg

## Methods of ios:

bad
clear
eof
fail
good

## Methods of ostream:

flush
put
seekp
tellp

## Constants in ios_base:

beg | (seekdir)
cur | (seekdir)
end | (seekdir)

clearData void StringStream::clear_data(void); Description: Empties the buffer.

getData string StringStream::get_data(void); Description: Returns the contents of the data stream as a string.

getDataSize unsigned int StringStream::get_data_size(void); Description: Returns the number of characters available to be read from the data stream.

setData void StringStream::set_data(string const &data); Description: Replaces the contents of the data stream. This implicitly reseeks to 0.

swapData void StringStream::swap_data(vector< unsigned char > &data); Description: Swaps the indicated buffer for the contents of the internal buffer.

flush void iostream::flush(void); Undocumented function.

get int istream::get(void); Undocumented function.

seekg void istream::seekg(unsigned long int pos); Undocumented function.

tellg unsigned long int istream::tellg(void); Undocumented function.

bad bool ios::bad(void) const; Undocumented function.

clear void ios::clear(void); Undocumented function.

eof bool ios::eof(void) const; Undocumented function.

fail bool ios::fail(void) const; Undocumented function.

good bool ios::good(void) const; Undocumented function.

flush void ostream::flush(void); Undocumented function.

put void ostream::put(char c); Undocumented function.

seekp void ostream::seekp(unsigned long int pos); Undocumented function.

tellp unsigned long int ostream::tellp(void); Undocumented function.