yabase/base64/nopadding
Values
pub fn decode(
input: String,
) -> Result(BitArray, encoding.CodecError)
Decode a Base64 string (without padding) to a BitArray.
Length % 4 must be 0, 2, or 3 (never 1).
Padding characters (=) and any non-alphabet byte (whitespace,
CR/LF, punctuation) are rejected with InvalidCharacter carrying
the offending byte and its position. The alphabet check runs
before the length check so a whitespace byte does not surface as
a misleading InvalidLength.