Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs Base64Alphabet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module juptune.data.base;

struct Base64Alphabet(
    char Char62, 
    char Char63, 
    Base64Padding Padding_, 
    char CharPad, 
    Flag!(
        "base64AllowLines"
    ) AllowLines_, 
    string LineBreak_, 
    uint MaxLineLength_
)
{
    /++ FUNCTIONS ++/
    
    ///
    uint charToSextet(char c);
    ///
    char sextetToChar(uint sextet);
    
    /++ MANIFEST CONSTANTS ++/
    
    ///
    enum int AllowLines = AllowLines_;
    ///
    enum int MaxLineLength = MaxLineLength_;
    ///
    enum int Pad1 = CharPad;
    ///
    enum int Padding = Padding_;
    ///
    enum int Zero = 'A';
    
    /++ VARIABLES ++/
    
    ///
    immutable auto LineBreak;
    ///
    immutable auto Pad2;
}

Documentation

Describes a base64 alphabet. You may want to use the aliases instead of using this directly.

Pretty much all base64 alphabets are the same beyond the 62nd and 63rd characters, and the padding character, so those are the only ones that are configurable.

Constants

Name Description
AllowLines
MaxLineLength
Pad1
Padding
Zero

Functions

Name Description
charToSextet
sextetToChar

Variables

Name Description
LineBreak
Pad2