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

Method num_words

src/stream/queue.rs:395–401  ·  view source on GitHub ↗

Returns the number of compressed words on the ans. This includes a constant overhead of between one and two words unless the coder is completely empty. This method returns the length of the slice, the `Vec `, or the iterator that would be returned by [`get_compressed`], [`into_compressed`], or [`iter_compressed`], respectively, when called at this time. See also [`num_bits`]. [`get_compre

(&'a self)

Source from the content-addressed store, hash-verified

393 /// [`iter_compressed`]: #method.iter_compressed
394 /// [`num_bits`]: #method.num_bits
395 pub fn num_words<'a>(&'a self) -> usize
396 where
397 Backend: AsReadWords<'a, Word, Queue>,
398 Backend::AsReadWords: BoundedReadWords<Word, Queue>,
399 {
400 self.bulk.as_read_words().remaining() + self.num_seal_words()
401 }
402
403 /// Returns the size of the current queue of compressed data in bits.
404 ///

Callers 1

num_bitsMethod · 0.45

Calls 3

remainingMethod · 0.80
as_read_wordsMethod · 0.80
num_seal_wordsMethod · 0.80

Tested by

no test coverage detected