Function decode [src]
Decodes a base64 string into a binary buffer.
The output buffer must be at least decodedLenUpperBound(encoded.len) bytes long.
Prototype
pub fn decode( self: DecoderWithIgnore, bin: []u8, encoded: []const u8, comptime variant: Variant, ) error{ NoSpaceLeft, InvalidCharacter, InvalidPadding }![]const u8 Parameters
self: DecoderWithIgnorebin: []u8encoded: []const u8variant: Variant Possible Errors
Source
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);
}