MCPcopy Create free account
hub / github.com/chen3feng/toft / ParseFromString

Method ParseFromString

encoding/proto_json_format.cpp:343–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343bool ProtoJsonFormat::ParseFromString(const std::string& input, Message* pb) {
344 Json::Reader reader;
345 Json::Value root;
346 reader.parse(input, root, false);
347 return ParseFromJsonValue(root, pb);
348}
349
350bool ProtoJsonFormat::ParseFromValue(const Json::Value& input, Message* output) {
351 return ParseFromJsonValue(input, output);

Callers

nothing calls this directly

Calls 1

ParseFromJsonValueFunction · 0.85

Tested by

no test coverage detected