| 177 | } |
| 178 | |
| 179 | void unpackColor(BitStream &bs, uint32_t &tgt)const override |
| 180 | { |
| 181 | bool in_hash= bs.GetBits(1); |
| 182 | if(in_hash) |
| 183 | { |
| 184 | uint16_t hash_idx = bs.GetBits(colorcachecount_bitlength); |
| 185 | const uint32_t *kv = m_colors.key_for_idx(hash_idx); |
| 186 | tgt = kv!=nullptr ? *kv : 0; |
| 187 | return; |
| 188 | } |
| 189 | tgt = bs.GetBits(32); |
| 190 | } |
| 191 | |
| 192 | void packPartname(const QString &str, BitStream &bs) const override |
| 193 | { |
no test coverage detected