Method lrs::file::File::zero

Zeroes a range in the file.

Syntax

impl File {
    fn zero<R>(&self, range: R) -> Result<(), Errno>
        where R: BoundedRange<u64>,
}

Arguments

NameDescription
range

The range that should be zeroed.

Remarks

This can be more efficient than manually writing zeroes.

See also