pub fn forgiving_decode_to_vec(data: &[u8]) -> Result<Vec<u8>, Error>
Available on crate feature alloc only.
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.