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

Function CheckAligned

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

Source from the content-addressed store, hash-verified

1256}
1257
1258Status CheckAligned(const FileBlock& block) {
1259 if (!bit_util::IsMultipleOf8(block.offset) ||
1260 !bit_util::IsMultipleOf8(block.metadata_length) ||
1261 !bit_util::IsMultipleOf8(block.body_length)) {
1262 return Status::Invalid("Unaligned block in IPC file");
1263 }
1264 return Status::OK();
1265}
1266
1267template <typename MessagePtr>
1268Result<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