| 56 | } |
| 57 | |
| 58 | inline void get_string(string& res, istream& s) |
| 59 | { |
| 60 | unsigned size = get_int(s); |
| 61 | char* buf = new char[size]; |
| 62 | s.read(buf, size); |
| 63 | res.assign(buf, size); |
| 64 | delete[] buf; |
| 65 | } |
| 66 | |
| 67 | #endif /* TOOLS_PARSE_H_ */ |
no test coverage detected