| 74 | |
| 75 | template <class PBType, class T> |
| 76 | Status SerializeToString(const char* name, const T& in, PBType* out_pb, |
| 77 | std::string* out) { |
| 78 | RETURN_NOT_OK(internal::ToProto(in, out_pb)); |
| 79 | return out_pb->SerializeToString(out) ? Status::OK() : ProtoStringOutputTooBig(name); |
| 80 | } |
| 81 | |
| 82 | // Result-returning ser/de functions (more convenient) |
| 83 |
nothing calls this directly
no test coverage detected