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

Function ParseFromBufferImpl

cpp/src/arrow/engine/substrait/serde.cc:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51namespace {
52
53Status ParseFromBufferImpl(const Buffer& buf, const std::string& full_name,
54 google::protobuf::Message* message) {
55 google::protobuf::io::ArrayInputStream buf_stream{buf.data(),
56 static_cast<int>(buf.size())};
57
58 if (message->ParseFromZeroCopyStream(&buf_stream)) {
59 return Status::OK();
60 }
61 return Status::Invalid("ParseFromZeroCopyStream failed for ", full_name);
62}
63
64} // namespace
65

Callers 1

ParseFromBufferFunction · 0.85

Calls 4

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

Tested by

no test coverage detected