Decode base64 from a mutable buffer (MAP_PRIVATE mmap or owned Vec).
Strips whitespace in-place using SIMD memchr2 gap-copy, then decodes
in-place with base64_simd::decode_inplace. Zero additional allocations.
Stream-decode from a reader to a writer. Used for stdin processing.
In-place strip + decode: read chunk -> strip whitespace in-place in read buffer
-> decode in-place -> write. Eliminates separate clean buffer allocation (saves 32MB).
Uses 32MB read buffer for maximum pipe throughput — read_full retries to
fill the entire buffer from the pipe, and 32MB means even large inputs
(up to ~24MB after base64 encoding of 18MB raw) are read in a single syscall batch.
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).
Stream-encode from a reader to a writer. Used for stdin processing.
Dispatches to specialized paths for wrap_col=0 (no wrap) and wrap_col>0 (wrapping).