void KeySet::KeyPart::print (std::ostream& os) const { Version const ver(version()); size_t const size(ver != EMPTY ? base_size(ver, data_, 1) : 0); os << '(' << int(exclusive()) << ',' << ver_str[ver] << ')' << gu::Hexdump(data_, size); if (annotated(ver)) { os << "="; print_annotation (os, data_ + size); } }
uint32 longest_size(uint8 quant_bits, uint32 entries, uint32 max_vocab) { return base_size(entries, max_vocab, quant_bits); }
uint32 middle_size(uint8 quant_bits, uint32 entries, uint32 max_vocab, uint32 max_ptr) { return base_size(entries, max_vocab, quant_bits + bitarr_required_bits(max_ptr)); }