decode

Function decode 

Source
pub fn decode(data: &[u8], out: &mut [u8]) -> Result<(), &'static str>
Expand description

Decode a base64 encoded slice without padding, by lookup table.

Input length must be a multiple of 4 bytes. Output length must be exactly 3/4 of input length.

ยงErrors

  • If input length is not a multiple of 4 bytes
  • If output length is not exactly 3/4 of input length
  • If any invalid base64 characters are encountered