pub const Variant = packed struct urlsafe_alphabet: bool = falseUse the URL-safe alphabet instead of the standard alphabet.
padding: bool = trueEnable padding with '=' characters.
The standard base64 variant.
The URL-safe base64 variant.
The standard base64 variant without padding.
The URL-safe base64 variant without padding.
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163 pub const Variant = packed struct {
/// Use the URL-safe alphabet instead of the standard alphabet.
urlsafe_alphabet: bool = false,
/// Enable padding with '=' characters.
padding: bool = true,
/// The standard base64 variant.
pub const standard: Variant = .{ .urlsafe_alphabet = false, .padding = true };
/// The URL-safe base64 variant.
pub const urlsafe: Variant = .{ .urlsafe_alphabet = true, .padding = true };
/// The standard base64 variant without padding.
pub const standard_nopad: Variant = .{ .urlsafe_alphabet = false, .padding = false };
/// The URL-safe base64 variant without padding.
pub const urlsafe_nopad: Variant = .{ .urlsafe_alphabet = true, .padding = false };
}
The base64 variant to use.