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

Function UnpackProtoAction

cpp/src/arrow/flight/serialization_internal.cc:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91Status UnpackProtoAction(const Action& action, google::protobuf::Message* out) {
92 google::protobuf::Any any;
93 if (!any.ParseFromArray(action.body->data(), static_cast<int>(action.body->size()))) {
94 return Status::Invalid("Unable to parse action ", action.type);
95 }
96 if (!any.UnpackTo(out)) {
97 return Status::Invalid("Unable to unpack ", out->GetTypeName());
98 }
99 return Status::OK();
100}
101
102// Timestamp
103

Calls 5

InvalidFunction · 0.50
OKFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected