MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SerializeToTString

Function SerializeToTString

tensorflow/core/platform/protobuf.h:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80#endif // defined(TENSORFLOW_PROTOBUF_USES_CORD)
81
82inline bool SerializeToTString(const protobuf::MessageLite& proto,
83 tstring* output) {
84#ifdef USE_TSTRING
85 size_t size = proto.ByteSizeLong();
86 output->resize_uninitialized(size);
87 return proto.SerializeToArray(output->data(), static_cast<int>(size));
88#else // USE_TSTRING
89 return proto.SerializeToString(output);
90#endif // USE_TSTRING
91}
92
93} // namespace tensorflow
94

Callers 9

ReserializeMessageMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85

Calls 3

resize_uninitializedMethod · 0.80
dataMethod · 0.45
SerializeToStringMethod · 0.45

Tested by

no test coverage detected