pub fn decode<S: AsRef<[u8]> + ?Sized>(src: &S) -> Decoder<'_>Expand description
Decodes base64_url encoded bytes with padding.
§Arguments
src- The encoded byte slice to decode
§Returns
An iterator that yields decoded bytes.
§Example
use omp_core::base64_url;
let encoded = base64_url::encode(b"hello").into_string();
let decoded = base64_url::decode(&encoded).into_vec().unwrap();
assert_eq!(decoded, b"hello");