| 205 | } |
| 206 | |
| 207 | static void PostDecode(const KeyColumnArray& input, KeyColumnArray* output, |
| 208 | LightContext* ctx) { |
| 209 | // Make sure that metadata and lengths are compatible. |
| 210 | DCHECK(output->metadata().is_fixed_length == input.metadata().is_fixed_length); |
| 211 | DCHECK(output->metadata().fixed_length == 0 && input.metadata().fixed_length == 1); |
| 212 | DCHECK(output->length() == input.length()); |
| 213 | constexpr int buffer_index = 1; |
| 214 | DCHECK(input.data(buffer_index) != nullptr); |
| 215 | DCHECK(output->mutable_data(buffer_index) != nullptr); |
| 216 | |
| 217 | util::bit_util::bytes_to_bits( |
| 218 | ctx->hardware_flags, static_cast<int>(input.length()), input.data(buffer_index), |
| 219 | output->mutable_data(buffer_index), output->bit_offset(buffer_index)); |
| 220 | } |
| 221 | }; |
| 222 | |
| 223 | } // namespace |
nothing calls this directly
no test coverage detected