MCPcopy Create free account
hub / github.com/ceph/ceph / decode_header_crc

Method decode_header_crc

src/common/bit_vector.hpp:463–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461
462template <uint8_t _b>
463void 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
473template <uint8_t _b>
474void BitVector<_b>::get_header_crc_extents(uint64_t *byte_offset,

Callers 1

object_map_updateFunction · 0.80

Calls 2

decodeFunction · 0.70
malformed_inputClass · 0.70

Tested by

no test coverage detected