Skip to content

encoding.base32 #

Constants #

const (
	std_padding  = `=` // Standard padding character
	no_padding   = u8(-1) // No padding
	std_alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'.bytes()
	hex_alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUV'.bytes()
)

fn decode #

fn decode(src []u8) ?[]u8

fn decode_string_to_string #

fn decode_string_to_string(src string) ?string

fn decode_to_string #

fn decode_to_string(src []u8) ?string

fn encode #

fn encode(src []u8) []u8

fn encode_string_to_string #

fn encode_string_to_string(src string) string

fn encode_to_string #

fn encode_to_string(src []u8) string

fn new_encoding #

fn new_encoding(alphabet []u8) Encoding

fn new_encoding_with_padding #

fn new_encoding_with_padding(alphabet []u8, padding_char u8) Encoding

fn new_std_encoding #

fn new_std_encoding() Encoding

fn new_std_encoding_with_padding #

fn new_std_encoding_with_padding(padding u8) Encoding

fn (Encoding) encode_to_string #

fn (enc &Encoding) encode_to_string(src []u8) string

fn (Encoding) encode_string_to_string #

fn (enc &Encoding) encode_string_to_string(src string) string

fn (Encoding) decode_string #

fn (enc &Encoding) decode_string(src string) ?[]u8

fn (Encoding) decode_string_to_string #

fn (enc &Encoding) decode_string_to_string(src string) ?string

fn (Encoding) decode #

fn (enc &Encoding) decode(src []u8) ?[]u8