Read the first `count` bits of `bytes` (LSB first) into a vector of booleans.
| 45 | |
| 46 | /// Read the first `count` bits of `bytes` (LSB first) into a vector of booleans. |
| 47 | std::vector<bool> BitsFromBytes(const std::vector<uint8_t>& bytes, rle_size_t count) { |
| 48 | std::vector<bool> bits(count); |
| 49 | for (rle_size_t i = 0; i < count; ++i) { |
| 50 | bits[i] = bit_util::GetBit(bytes.data(), i); |
| 51 | } |
| 52 | return bits; |
| 53 | } |
| 54 | |
| 55 | struct CheckDecodedBitsParams { |
| 56 | const std::vector<uint8_t>& actual; |