MCPcopy Create free account
hub / github.com/dmlc/parameter_server / writeProtoToASCIIFile

Function writeProtoToASCIIFile

src/util/file.cc:263–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263bool writeProtoToASCIIFile(
264 const GProto& proto, const std::string& file_name) {
265 std::string proto_string;
266 return google::protobuf::TextFormat::PrintToString(proto, &proto_string) &&
267 writeStringToFile(proto_string, file_name);
268}
269
270void writeProtoToASCIIFileOrDie(
271 const GProto& proto, const std::string& file_name) {

Callers 3

writeToBinFileMethod · 0.85
writeToBinFileMethod · 0.85

Calls 1

writeStringToFileFunction · 0.85

Tested by

no test coverage detected