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

Function PackProtoAction

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

Source from the content-addressed store, hash-verified

80}
81
82Status PackProtoAction(std::string action_type, const google::protobuf::Message& action,
83 Action* out) {
84 std::string buf;
85 RETURN_NOT_OK(PackToAnyAndSerialize(action, &buf));
86 out->type = std::move(action_type);
87 out->body = Buffer::FromString(std::move(buf));
88 return Status::OK();
89}
90
91Status UnpackProtoAction(const Action& action, google::protobuf::Message* out) {
92 google::protobuf::Any any;

Callers 1

DoProtoActionFunction · 0.85

Calls 3

PackToAnyAndSerializeFunction · 0.85
FromStringFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected