| 1251 | } |
| 1252 | |
| 1253 | Status 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 | |
| 1262 | template <typename MessagePtr> |
| 1263 | Result<MessagePtr> CheckBodyLength(MessagePtr message, const FileBlock& block) { |
no test coverage detected