Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.49 KB

File-std-encoding-base64-ml-1044483879.md

File metadata and controls

55 lines (33 loc) · 1.49 KB

std/encoding/base64.ml

Home · Files

Provides the std encoding base64 package.

Package: std.encoding.base64

Reachable from entry: no

Declarations

ALPHABET

const ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Std.encoding.base64 Minimal Base64 (RFC 4648) utilities: toBase64(bytes) -> string fromBase64(string) -> bytes | void Notes: - fromBase64 ignores ASCII whitespace (space/tab/CR/LF). - returns void on invalid input.

Source: std/encoding/base64.ml:22

fromBase64

function fromBase64(text)

Decoding: base64 string -> bytes (or void on error).

Parameter Type Default Description
text dynamic — Text to process.

Source: std/encoding/base64.ml:157

toBase64

function toBase64(b)

Encoding: bytes -> base64 string (with '=' padding).

Parameter Type Default Description
b dynamic — Second input value.

Source: std/encoding/base64.ml:105