12 {
ss.exceptions( std::stringstream::badbit ); }
16 {
ss.exceptions( std::stringstream::badbit ); }
18 impl(){
ss.exceptions( std::stringstream::badbit ); }
29 stringstream::stringstream(){}
30 stringstream::~stringstream(){}
41 void stringstream::clear() {
46 bool stringstream::eof()
const {
49 size_t stringstream::writesome(
const char*
buf,
size_t len ) {
57 size_t stringstream::writesome(
const std::shared_ptr<const char>&
buf,
size_t len,
size_t offset )
59 return writesome(
buf.get() + offset,
len);
62 size_t stringstream::readsome(
char*
buf,
size_t len ) {
63 size_t r =
static_cast<size_t>(my->ss.readsome(
buf,
len));
64 if( my->ss.eof() ||
r == 0 )
70 size_t stringstream::readsome(
const std::shared_ptr<char>&
buf,
size_t len,
size_t offset )
72 return readsome(
buf.get() + offset,
len);
76 void stringstream::close(){ my->ss.flush(); };
77 void stringstream::flush(){ my->ss.flush(); };
104 char stringstream::peek()
106 char c = my->ss.peek();
impl(const fc::string &s)
Defines exception's used by fc.
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)