MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / get_string

Function get_string

Tools/parse.h:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58inline 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_ */

Callers 1

parse_operandsMethod · 0.85

Calls 3

get_intFunction · 0.85
readMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected