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>Memory — Ludic</title>
|
||
<meta name="description" content="Raw memory — allocate byte and word buffers, copy and fill regions, and peek/poke individual bytes.">
|
||
<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">Memory</span></div>
|
||
<div class="item-head"><span class="kind-badge kind-namespace">namespace</span><h1 id="top">Memory</h1></div>
|
||
<p class="ns-blurb">Raw memory — allocate byte and word buffers, copy and fill regions, and peek/poke individual bytes. The low-level escape hatch.</p>
|
||
<div class="ns-methods"><a class="ns-method" href="memory-bytes.html"><code class="nm-sig">Memory.bytes(n) -> pointer</code><span class="nm-tip">Allocate n bytes.</span></a><a class="ns-method" href="memory-words.html"><code class="nm-sig">Memory.words(n) -> words</code><span class="nm-tip">Allocate n 32-bit words.</span></a><a class="ns-method" href="memory-copy.html"><code class="nm-sig">Memory.copy(dst, src, n) -> void</code><span class="nm-tip">Copy n bytes between buffers.</span></a><a class="ns-method" href="memory-fill.html"><code class="nm-sig">Memory.fill(buf, value, n) -> void</code><span class="nm-tip">Set n bytes to a value.</span></a><a class="ns-method" href="memory-peek.html"><code class="nm-sig">Memory.peek(buf, i) -> int</code><span class="nm-tip">Read one byte.</span></a><a class="ns-method" href="memory-poke.html"><code class="nm-sig">Memory.poke(buf, i, value) -> void</code><span class="nm-tip">Write one byte.</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> |