vmm_sys_util::write_zeroesTrait PunchHole
source pub trait PunchHole {
// Required method
fn punch_hole(&mut self, offset: u64, length: u64) -> Result<()>;
}
Expand description
A trait for deallocating space in a file.
Replace a range of bytes with a hole.
§Arguments
offset
: offset of the file where to replace with a hole.
length
: the number of bytes of the hole to replace with.