Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · base32

Docs

std/base32

On this page

Index

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.

Source: std/base32.xo:7

DecodeErr

struct DecodeErr {
  at: Int
}

Displays as Go’s CorruptInputError: illegal base32 data at input byte 4.

Source: std/base32.xo:15

DecodeErr.display

fn (e: DecodeErr) display() -> Str

Source: std/base32.xo:19

Functions

encode

fn encode(data: Bytes, enc: Base32 = Base32.Std) -> Str

Source: std/base32.xo:21

decode

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.

Source: std/base32.xo:25

↑ index