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

Function CheckAligned

cpp/src/arrow/ipc/reader.cc:1273–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1271}
1272
1273Status CheckAligned(const FileBlock& block) {
1274 if (!bit_util::IsMultipleOf8(block.offset) ||
1275 !bit_util::IsMultipleOf8(block.metadata_length) ||
1276 !bit_util::IsMultipleOf8(block.body_length)) {
1277 return Status::Invalid("Unaligned block in IPC file");
1278 }
1279 return Status::OK();
1280}
1281
1282template <typename MessagePtr>
1283Result<MessagePtr> CheckBodyLength(MessagePtr message, const FileBlock& block) {

Callers 3

ReadMessageFromBlockFunction · 0.70
WriteIpcPayloadFunction · 0.70

Calls 3

IsMultipleOf8Function · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected