[][src]Trait vmm_sys_util::write_zeroes::PunchHole

pub trait PunchHole {
    fn punch_hole(&mut self, offset: u64, length: u64) -> Result<()>;
}

A trait for deallocating space in a file.

Required methods

fn punch_hole(&mut self, offset: u64, length: u64) -> Result<()>

Replace a range of bytes with a hole.

Arguments

  • offset: offset of the file where to replace with a hole.
  • length: the bytes of a hole to replace with.
Loading content...

Implementations on Foreign Types

impl PunchHole for File[src]

Loading content...

Implementors

Loading content...