MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / deserialize_string

Function deserialize_string

smallthinker/tools/perplexity/perplexity.cpp:1300–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298}
1299
1300static 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
1309struct multiple_choice_answers {
1310 std::vector<std::string> answers;

Callers 2

deserializeMethod · 0.85
deserializeMethod · 0.85

Calls 2

readMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected