| 461 | |
| 462 | template <uint8_t _b> |
| 463 | void BitVector<_b>::decode_header_crc(bufferlist::const_iterator& it) { |
| 464 | if (it.get_remaining() > 0) { |
| 465 | __u32 header_crc; |
| 466 | ceph::decode(header_crc, it); |
| 467 | if (m_header_crc != header_crc) { |
| 468 | throw buffer::malformed_input("incorrect header CRC"); |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | template <uint8_t _b> |
| 474 | void BitVector<_b>::get_header_crc_extents(uint64_t *byte_offset, |
no test coverage detected