| 1271 | } |
| 1272 | |
| 1273 | Status 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 | |
| 1282 | template <typename MessagePtr> |
| 1283 | Result<MessagePtr> CheckBodyLength(MessagePtr message, const FileBlock& block) { |
no test coverage detected