MCPcopy Create free account
hub / github.com/bamler-lab/constriction / num_valid_bits

Method num_valid_bits

src/stream/stack.rs:557–564  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 7

test_old_module_example1Function · 0.95
test_stack2Function · 0.95
test_ans_exampleFunction · 0.95
test_stack_gaussianFunction · 0.95
test_old_module_example1Function · 0.95
test_stack2Function · 0.95
test_ans_exampleFunction · 0.95

Calls 1

remainingMethod · 0.80

Tested by 7

test_old_module_example1Function · 0.76
test_stack2Function · 0.76
test_ans_exampleFunction · 0.76
test_stack_gaussianFunction · 0.76
test_old_module_example1Function · 0.76
test_stack2Function · 0.76
test_ans_exampleFunction · 0.76