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

Method PrintToFastString

encoding/proto_json_format.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool ProtoJsonFormat::PrintToFastString(const Message& message, std::string* output) {
166 Json::Value root;
167 WriteToValue(message, &root);
168 Json::FastWriter writer;
169 output->assign(writer.write(root));
170 return true;
171}
172
173static bool SetSingleValueForMessage(const Reflection* reflection,
174 Message* pb,

Callers

nothing calls this directly

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected