base64_simd

Function forgiving_decode_to_vec

Source
pub fn forgiving_decode_to_vec(data: &[u8]) -> Result<Vec<u8>, Error>
Expand description

Forgiving decodes a base64 string to bytes and returns a new Vec<u8>.

This function uses the standard charset.

See https://infra.spec.whatwg.org/#forgiving-base64

ยงErrors

This function returns Err if the content of data is invalid.