MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / get_decoder

Method get_decoder

block/src/qcow/header.rs:370–375  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

368 }
369
370 pub fn get_decoder(&self) -> Box<dyn Decoder> {
371 match self.compression_type {
372 CompressionType::Zlib => Box::new(ZlibDecoder {}),
373 CompressionType::Zstd => Box::new(ZstdDecoder {}),
374 }
375 }
376
377 pub fn create_for_size_and_path(
378 version: u32,

Callers 4

read_at_innerMethod · 0.80
decompress_l2_clusterMethod · 0.80
newMethod · 0.80
decompress_l2_clusterMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected