Fields

decoder: Base64Decoder,
char_is_ignored: [256]bool,

Functions

fn calcSizeUpperBound(decoder_with_ignore: *const Base64DecoderWithIgnore, source_len: usize) Error!usize

Return the maximum possible decoded size for a given input length - The actual l…

Return the maximum possible decoded size for a given input length - The actual length may be less if the input includes padding InvalidPadding is returned if the input length is not valid.

fn decode(decoder_with_ignore: *const Base64DecoderWithIgnore, dest: []u8, source: []const u8) Error!usize

Invalid characters that are not ignored result in error.InvalidCharacter. Inval…

Invalid characters that are not ignored result in error.InvalidCharacter. Invalid padding results in error.InvalidPadding. Decoding more data than can fit in dest results in error.NoSpaceLeft. See also ::calcSizeUpperBound. Returns the number of bytes written to dest.

fn init(alphabet_chars: [64]u8, pad_char: ?u8, ignore_chars: []const u8) Base64DecoderWithIgnore

No documentation provided.