| 278 | } |
| 279 | |
| 280 | inline std::string readString() |
| 281 | { |
| 282 | const int len = readInt(); |
| 283 | if( len ) |
| 284 | { |
| 285 | char * sc = new char[len + 1]; |
| 286 | read( sc, len ); |
| 287 | sc[len] = 0; |
| 288 | std::string s( sc ); |
| 289 | delete[] sc; |
| 290 | return s; |
| 291 | } |
| 292 | return std::string(); |
| 293 | } |
| 294 | |
| 295 | |
| 296 | inline void writeString( const std::string & _s ) |
no test coverage detected