22 lines
No EOL
2.3 KiB
HTML
22 lines
No EOL
2.3 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Base64 — Ludic</title>
|
||
<meta name="description" content="Standard base64 (RFC 4648) — Base64.decode reads base64 text into the bytes it stands for, and Base64.encode is the inverse.">
|
||
<link rel="stylesheet" href="base.css">
|
||
<link rel="stylesheet" href="docs.css">
|
||
</head>
|
||
<body>
|
||
<header class="nav"><div class="wrap nav-in"><a class="brand" href="index.html"><span class="logo">L</span> Ludic</a><button class="nav-toggle" aria-label="Toggle menu" aria-expanded="false">☰</button><nav class="nav-links"><a href="index.html">Home</a><a href="api.html">API Reference</a><a class="nav-cta" href="https://git.workshopsoft.io/workshopsoft/ludic">Source ↗</a></nav></div></header>
|
||
<main class="wrap item">
|
||
<div class="crumbs"><a href="api.html">API Reference</a> <span>›</span> <span class="here">Base64</span></div>
|
||
<div class="item-head"><span class="kind-badge kind-namespace">namespace</span><h1 id="top">Base64</h1></div>
|
||
<p class="ns-blurb">Standard base64 (RFC 4648) — <a href="base64-decode"><code>Base64.decode</code></a> reads base64 text into the bytes it stands for, and <a href="base64-encode"><code>Base64.encode</code></a> is the inverse. The decoder ignores ASCII whitespace, so it reads the newline-wrapped base64 that Tiled writes inside a <code><data></code> element; that output then feeds the DEFLATE inflater for zlib/gzip-compressed layer data. Deterministic; spliced on demand when a program mentions <code>Base64.*</code>. (The security-sensitive encoder <a href="crypto-base64"><code>Crypto.base64</code></a> is a separate, hardened path.)</p>
|
||
<div class="ns-methods"><a class="ns-method" href="base64-decode.html"><code class="nm-sig">Base64.decode(src: string) -> string</code><span class="nm-tip">Decode standard base64 text to bytes.</span></a><a class="ns-method" href="base64-encode.html"><code class="nm-sig">Base64.encode(src: string) -> string</code><span class="nm-tip">Encode bytes as standard base64 text.</span></a></div>
|
||
<a class="back" href="api.html">← All symbols</a>
|
||
</main>
|
||
<script src="ludic-highlight.js"></script>
|
||
<script>Ludic.installCards(); Ludic.flashTarget();</script>
|
||
</body></html> |