Skip to main content

decode_stream

Function decode_stream 

Source
pub fn decode_stream(
    reader: &mut impl Read,
    ignore_garbage: bool,
    writer: &mut impl Write,
) -> Result<()>
Expand description

Stream-decode from a reader to a writer. Used for stdin processing. Fused single-pass: read chunk -> strip whitespace -> decode immediately. Uses 16MB read buffer to reduce syscalls and memchr2-based SIMD whitespace stripping for the common case (only \n and \r whitespace in base64 streams).