pub fn encode_stream(
reader: &mut impl Read,
wrap_col: usize,
writer: &mut impl Write,
) -> Result<()>Expand description
Stream-encode from a reader to a writer. Used for stdin processing. Uses 4MB read chunks and batches wrapped output for minimum syscalls. The caller is expected to provide a suitably buffered or raw fd writer.