std/base64
On this page
Index
- type
Base64 - type
DecodeErr- method
DecodeErr.display
- method
- fn
encode - fn
decode
Types
Base64
enum Base64 {
Std
Url
RawStd
RawUrl
}RFC 4648 section 4 (Std, +/) and section 5 (Url, -_); the Raw
forms write and read no = padding.
DecodeErr
struct DecodeErr {
at: Int
}Displays as Go’s CorruptInputError: illegal base64 data at input byte 4.
DecodeErr.display
fn (e: DecodeErr) display() -> StrFunctions
encode
fn encode(data: Bytes, enc: Base64 = Base64.Std) -> Strdecode
fn decode(s: Str, enc: Base64 = Base64.Std) -> Bytes ! DecodeErr\r and \n are skipped; anything else outside the alphabet, or
padding where the encoding has none, is DecodeErr at its byte offset.