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

Method get_compressed

src/stream/queue.rs:482–484  ·  view source on GitHub ↗

Assembles the current compressed data into a single slice. This method is only implemented for encoders backed by a `Vec ` because we have to temporarily seal the encoder and then unseal it when the returned `EncoderGuard` is dropped, which requires precise knowledge of the backend (and which is also the reason why this method takes a `&mut self` receiver). If you're using a different backen

(&mut self)

Source from the content-addressed store, hash-verified

480 ///
481 /// [`into_compressed`]: Self::into_compressed
482 pub fn get_compressed(&mut self) -> EncoderGuard<'_, Word, State> {
483 EncoderGuard::new(self)
484 }
485
486 // TODO: implement `iter_compressed`
487

Callers 15

test_module_example2Function · 0.95
test_module_example3Function · 0.95
test_range_coding_modFunction · 0.95
test_old_module_example2Function · 0.95
test_range_coder_encode2Function · 0.95
test_range_coder_encode3Function · 0.95
test_range_coder_encode4Function · 0.95
test_range_coding_seekFunction · 0.95
fixed_model_paramsFunction · 0.95
variable_model_paramsFunction · 0.95
discrete_distributionFunction · 0.95
test_queue_gaussianFunction · 0.95

Calls

no outgoing calls

Tested by 15

test_module_example2Function · 0.76
test_module_example3Function · 0.76
test_range_coding_modFunction · 0.76
test_old_module_example2Function · 0.76
test_range_coder_encode2Function · 0.76
test_range_coder_encode3Function · 0.76
test_range_coder_encode4Function · 0.76
test_range_coding_seekFunction · 0.76
fixed_model_paramsFunction · 0.76
variable_model_paramsFunction · 0.76
discrete_distributionFunction · 0.76
test_queue_gaussianFunction · 0.76