API Reference › Base64
namespace

Base64

Standard base64 (RFC 4648) — Base64.decode reads base64 text into the bytes it stands for, and Base64.encode is the inverse. The decoder ignores ASCII whitespace, so it reads the newline-wrapped base64 that Tiled writes inside a <data> element; that output then feeds the DEFLATE inflater for zlib/gzip-compressed layer data. Deterministic; spliced on demand when a program mentions Base64.*. (The security-sensitive encoder Crypto.base64 is a separate, hardened path.)

Base64.decode(src: string) -> stringDecode standard base64 text to bytes.Base64.encode(src: string) -> stringEncode bytes as standard base64 text.
← All symbols