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

Method new

block/src/qcow/metadata.rs:138–143  ·  view source on GitHub ↗
(inner: QcowState)

Source from the content-addressed store, hash-verified

136
137impl QcowMetadata {
138 pub(crate) fn new(inner: QcowState) -> Self {
139 QcowMetadata {
140 decoder: Arc::from(inner.header.get_decoder()),
141 inner: RwLock::new(inner),
142 }
143 }
144
145 /// Maps a multicluster guest read range to a list of read mappings.
146 ///

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
get_decoderMethod · 0.80

Tested by

no test coverage detected