Function copy

Source
pub fn copy<R, W>(
    reader: &mut R,
    writer: &mut W,
    bytes_to_copy: u64,
) -> Result<()>
where R: Read, W: Write,
Expand description
  • Copy data from a reader to a writer from the current position.