Function cavity::fill [] [src]

pub fn fill<W: Write>(
    how_many: Bytes,
    buffer_size: Option<Bytes>,
    write_mode: WriteMode,
    file: &mut W
) -> IoResult<()>

Fill writer with as many zeroes as you want. First it writes in chunks of buffer_size, then it writes megabyte by megabyte.