std.base64.Base64Decoder
- Kind
- struct
- Module
std.base64
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.base64 in the Zig reference. This page has 22 cards.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSizeForSlice(decoder: *const Base64Decoder, source: []const u8) Error!usize
Return the exact decoded size for a slice. `InvalidPadding` is returned if the input length is not valid.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSizeUpperBound(decoder: *const Base64Decoder, source_len: usize) Error!usize
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.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn decode(decoder: *const Base64Decoder, dest: []u8, source: []const u8) Error!void
dest.len must be what you get from ::calcSize.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(alphabet_chars: [64]u8, pad_char: ?u8) Base64Decoder
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSizeUpperBound(decoder_with_ignore: *const Base64DecoderWithIgnore, source_len: usize) usize
Return the maximum possible decoded size for a given input length - The actual length may be less if the input includes padding or ignored characters.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn decode(decoder_with_ignore: *const Base64DecoderWithIgnore, dest: []u8, source: []const u8) Error!usize
Invalid characters that are not ignored result in error.InvalidCharacter.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(alphabet_chars: [64]u8, pad_char: ?u8, ignore_chars: []const u8) Base64DecoderWithIgnore
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn calcSize(encoder: *const Base64Encoder, source_len: usize) usize
Compute the encoded length.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn encode(encoder: *const Base64Encoder, dest: []u8, source: []const u8) []const u8
dest.len must at least be what you get from ::calcSize.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn encodeWriter(encoder: *const Base64Encoder, dest: *std.Io.Writer, source: []const u8) !void
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn init(alphabet_chars: [64]u8, pad_char: ?u8) Base64Encoder
A bunch of assertions, then simply pass the data right through.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Base64 codecs.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Standard Base64 codecs, with padding, as defined in [RFC 4648 section 4](https://datatracker.ietf.org/doc/html/rfc4648#section-4).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The Base64 alphabet defined in [RFC 4648 section 4](https://datatracker.ietf.org/doc/html/rfc4648#section-4).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Standard Base64 codecs, without padding, as defined in [RFC 4648 section 3.2](https://datatracker.ietf.org/doc/html/rfc4648#section-3.2).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
URL-safe Base64 codecs, with padding, as defined in [RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The URL-safe Base64 alphabet defined in [RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
URL-safe Base64 codecs, without padding, as defined in [RFC 4648 section 3.2](https://datatracker.ietf.org/doc/html/rfc4648#section-3.2).
std.base64Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.