pub(crate) fn chunked_encode(encoding: &Encoding, data: &[u8]) -> StringExpand description
Encodes data using the provided encoding, transparently chunking to work around
data-encoding’s encode_len length assertion (len <= usize::MAX / 512, ~8 MB on 32-bit
targets like wasm32). On 64-bit targets the limit is effectively infinite so all input fits in a
single chunk.