| 1256 | } |
| 1257 | |
| 1258 | Status 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 | |
| 1267 | template <typename MessagePtr> |
| 1268 | Result<MessagePtr> CheckBodyLength(MessagePtr message, const FileBlock& block) { |
no test coverage detected