Decodes the given base64 string. Whitespace characters are skipped, and the string stops at the first null terminator or ‘=’, as to match ZipUtils behavior. Padding is ignored, i.e. Base64Variant::Normal behaves the same as Base64Variant::NormalNoPad
Function decode
str
Base64 encoded string
Decoded data, or an error if decoding failed