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

Function CheckAligned

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

Source from the content-addressed store, hash-verified

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