std/base32
On this page
Index
- type
Base32 - type
DecodeErr- method
DecodeErr.display
- method
- fn
encode - fn
decode
Types
Base32
enum Base32 {
Std
Hex
RawStd
RawHex
}RFC 4648 section 6 (Std, A-Z2-7) and section 7 (Hex,
0-9A-V); the Raw forms write and read no = padding.
DecodeErr
struct DecodeErr {
at: Int
}Displays as Go’s CorruptInputError: illegal base32 data at input byte 4.
DecodeErr.display
fn (e: DecodeErr) display() -> StrFunctions
encode
fn encode(data: Bytes, enc: Base32 = Base32.Std) -> Strdecode
fn decode(s: Str, enc: Base32 = Base32.Std) -> Bytes ! DecodeErr\r and \n are removed first; anything else outside the alphabet,
or padding where the encoding has none, is DecodeErr at its byte
offset in the input without them.