Skip to content

Search

Documentation

encoding

Bytes to base64 text and back. The encoding script module of the Balaur game engine: 3 functions and 0 constants a script reaches as encoding::.

On this page

Bytes to base64 text and back.

3 functions, 0 constants. Scripts reach it as encoding::.

Functions

Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.

function acts on what it does
base64([int]) -> string — Bytes as standard base64 with padding.
base64_text(string) -> string — A string's UTF-8 as standard base64 with padding.
from_base64(string) -> [int] — The bytes a base64 string encodes; an error for text that is not base64.

Are you sure?