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

Method seek

block/src/qcow/raw_file.rs:316–324  ·  view source on GitHub ↗
(&mut self, newpos: SeekFrom)

Source from the content-addressed store, hash-verified

314
315impl Seek for RawFile {
316 fn seek(&mut self, newpos: SeekFrom) -> std::io::Result<u64> {
317 match self.file.seek(newpos) {
318 Ok(pos) => {
319 self.position = pos;
320 Ok(pos)
321 }
322 Err(e) => Err(e),
323 }
324 }
325}
326
327impl WriteZeroesAt for RawFile {

Callers 2

readMethod · 0.45
writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected