decode
Decodes a base64 string into a binary buffer.
The output buffer must be at least decodedLenUpperBound(encoded.len) bytes long.
Function parameters
Parameters
- bin:[]u8
- encoded:[]const u8
(best-effort) constant time hexadecimal encoding and decoding.
Types
Error sets in this namespace
Error Sets
Source
Implementation
pub fn decode(
self: DecoderWithIgnore,
bin: []u8,
encoded: []const u8,
comptime variant: Variant,
) error{ NoSpaceLeft, InvalidCharacter, InvalidPadding }![]const u8 {
return decodeAny(bin, encoded, variant, self.ignored_chars);
}