Trait base::PunchHole

source ·
pub trait PunchHole {
    // Required method
    fn punch_hole(&self, offset: u64, length: u64) -> Result<()>;
}
Expand description

A trait for deallocating space in a file.

Required Methods§

source

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

Replace a range of bytes with a hole.

Implementations on Foreign Types§

source§

impl PunchHole for File

source§

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

Implementors§