(&self)
| 555 | } |
| 556 | |
| 557 | pub fn num_valid_bits(&self) -> usize |
| 558 | where |
| 559 | Backend: BoundedReadWords<Word, Stack>, |
| 560 | { |
| 561 | Word::BITS * self.bulk.remaining() |
| 562 | + core::cmp::max(State::BITS - self.state.leading_zeros() as usize, 1) |
| 563 | - 1 |
| 564 | } |
| 565 | |
| 566 | pub fn into_decoder(self) -> AnsCoder<Word, State, Backend::IntoReadWords> |
| 567 | where |