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

Method num_bits

src/stream/queue.rs:410–416  ·  view source on GitHub ↗

Returns the size of the current queue of compressed data in bits. This includes some constant overhead unless the coder is completely empty (see [`num_words`](#method.num_words)). The returned value is a multiple of the bitlength of the compressed word type `Word`.

(&'a self)

Source from the content-addressed store, hash-verified

408 /// The returned value is a multiple of the bitlength of the compressed word
409 /// type `Word`.
410 pub fn num_bits<'a>(&'a self) -> usize
411 where
412 Backend: AsReadWords<'a, Word, Queue>,
413 Backend::AsReadWords: BoundedReadWords<Word, Queue>,
414 {
415 Word::BITS * self.num_words()
416 }
417
418 pub fn bulk(&self) -> &Backend {
419 &self.bulk

Callers 3

test_old_module_example2Function · 0.95
test_queue_gaussianFunction · 0.95
test_old_module_example2Function · 0.95

Calls 1

num_wordsMethod · 0.45

Tested by 3

test_old_module_example2Function · 0.76
test_queue_gaussianFunction · 0.76
test_old_module_example2Function · 0.76