WriteZeroes

Trait WriteZeroes 

Source
pub trait WriteZeroes {
    // Required method
    fn write_zeroes(&mut self, length: usize) -> Result<usize>;
}
Expand description

A trait for writing zeroes to a stream.

Required Methods§

Source

fn write_zeroes(&mut self, length: usize) -> Result<usize>

Write length bytes of zeroes to the stream, returning how many bytes were written.

Implementors§