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

Function CheckMetadataAndGetBodyLength

cpp/src/arrow/ipc/message.cc:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Status CheckMetadataAndGetBodyLength(const Buffer& metadata, int64_t* body_length) {
64 const flatbuf::Message* fb_message = nullptr;
65 RETURN_NOT_OK(internal::VerifyMessage(metadata.data(), metadata.size(), &fb_message));
66 *body_length = fb_message->bodyLength();
67 if (*body_length < 0) {
68 return Status::IOError("Invalid IPC message: negative bodyLength");
69 }
70 return Status::OK();
71}
72
73Status WritePadding(io::OutputStream* stream, int64_t nbytes) {
74 while (nbytes > 0) {

Callers 1

ConsumeMetadataMethod · 0.85

Calls 5

VerifyMessageFunction · 0.85
IOErrorFunction · 0.85
OKFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected