MCPcopy Create free account
hub / github.com/apache/arrow / ParseFromString

Function ParseFromString

cpp/src/arrow/flight/types.cc:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64template <class PBType>
65Status ParseFromString(const char* name, std::string_view serialized, PBType* out) {
66 if (serialized.size() > static_cast<size_t>(std::numeric_limits<int>::max())) {
67 return ProtoStringInputTooBig(name);
68 }
69 if (!out->ParseFromArray(serialized.data(), static_cast<int>(serialized.size()))) {
70 return InvalidProtoString(name);
71 }
72 return Status::OK();
73}
74
75template <class PBType, class T>
76Status SerializeToString(const char* name, const T& in, PBType* out_pb,

Callers 1

DeserializeProtoStringFunction · 0.70

Calls 5

ProtoStringInputTooBigFunction · 0.85
InvalidProtoStringFunction · 0.85
OKFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected