Check if no data for decoding is left. Note that you can still pop symbols off an empty stack, but this is only useful in rare edge cases, see documentation of [`decode_symbol`](#method.decode_symbol).
(&self)
| 413 | /// useful in rare edge cases, see documentation of |
| 414 | /// [`decode_symbol`](#method.decode_symbol). |
| 415 | pub fn is_empty(&self) -> bool { |
| 416 | // We don't need to check if `bulk` is empty (which would require an additional |
| 417 | // type bound `Backend: ReadLookaheadItems<Word>` because we keep up the |
| 418 | // invariant that `state >= State::one() << (State::BITS - Word::BITS))` |
| 419 | // when `bulk` is not empty. |
| 420 | self.state == State::zero() |
| 421 | } |
| 422 | |
| 423 | /// Assembles the current compressed data into a single slice. |
| 424 | /// |
no outgoing calls