Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

Variant

Public Struct
std.crypto.codecs.base64_hex_ct.base64.Variant
pub const Variant = packed struct

The base64 variant to use.

Fields

urlsafe_alphabet: bool = false

Use the URL-safe alphabet instead of the standard alphabet.

padding: bool = true

Enable padding with '=' characters.

Values

  • pub const standard

    The standard base64 variant.

  • pub const urlsafe

    The URL-safe base64 variant.

  • pub const standard_nopad

    The standard base64 variant without padding.

  • pub const urlsafe_nopad

    The URL-safe base64 variant without padding.

File

crypto/codecs/base64_hex_ct.zig:149
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 };
    }