Skip to main content

decode_to_writer

Function decode_to_writer 

Source
pub fn decode_to_writer(
    data: &[u8],
    ignore_garbage: bool,
    out: &mut impl Write,
) -> Result<()>
Expand description

Decode base64 data and write to output (borrows data, allocates clean buffer). When ignore_garbage is true, strip all non-base64 characters. When false, only strip whitespace (standard behavior).