| 21 | using namespace base::serialization::little_endian; |
| 22 | |
| 23 | void write_string(std::ostream& os, const std::string& str) |
| 24 | { |
| 25 | write16(os, (uint16_t)str.size()); |
| 26 | if (!str.empty()) |
| 27 | os.write(str.c_str(), str.size()); |
| 28 | } |
| 29 | |
| 30 | std::string read_string(std::istream& is) |
| 31 | { |
no test coverage detected