[][src]Function crypt4gh::rearrange

pub fn rearrange<R: Read, W: Write>(
    keys: Vec<Keys>,
    read_buffer: &mut R,
    write_buffer: &mut W,
    range_start: usize,
    range_span: Option<usize>
) -> Result<()>

Reads from the read_buffer and writes the rearranged data to write_buffer.

Reads from the read_buffer and writes the rearranged data to write_buffer. If the range is specified, it will only rearrange the bytes from range_start to range_start + range_span. In case that range_span is none, it will rearrange from range_start to the end of the input.