| 577 | } |
| 578 | |
| 579 | inline std::string readString() |
| 580 | { |
| 581 | const int len = readInt(); |
| 582 | if( len ) |
| 583 | { |
| 584 | char * sc = new char[len + 1]; |
| 585 | read( sc, len ); |
| 586 | sc[len] = 0; |
| 587 | std::string s( sc ); |
| 588 | delete[] sc; |
| 589 | return s; |
| 590 | } |
| 591 | return std::string(); |
| 592 | } |
| 593 | |
| 594 | |
| 595 | inline void writeString( const std::string & _s ) |
no test coverage detected