core/encoding/base32
encoding_base32
Types
2Error
Error :: enum int {
None = 0,
Invalid_Character = 1, // Input contains characters outside the specified alphabet
Invalid_Length = 2, // Input length is not valid for base32 (must be a multiple of 8 with proper padding)
Malformed_Input = 3, // Input has improper structure (wrong padding position or incomplete groups)
}SourceValidate_Proc
Validate_Proc :: proc(c: u8) -> (bool)SourceConstants
1Variables
2DEC_TABLE
DEC_TABLE :: [256]u8 = [256]u8 {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 26, 27, 28, 29, 30, 31, 0, 0, 0, 0, 0SourceENC_TABLE
ENC_TABLE :: [32]u8 = [32]byte {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', '2', '3', '4', '5', '6', '7',
}Source