| 1298 | } |
| 1299 | |
| 1300 | static bool deserialize_string(std::istream & in, std::string & str) { |
| 1301 | uint32_t size; |
| 1302 | if (!in.read((char *)&size, sizeof(size)).fail()) { |
| 1303 | str.resize(size); |
| 1304 | if (!in.read((char *)&str[0], size).fail()) return true; |
| 1305 | } |
| 1306 | return false; |
| 1307 | } |
| 1308 | |
| 1309 | struct multiple_choice_answers { |
| 1310 | std::vector<std::string> answers; |
no test coverage detected