Files
ziran/site/std/binary_linux.html
T
waozi 55b0176800 Release Ziran 0.7.0
Wasm now runs all three Kryon widget scenarios faster than Go: Button
2.46 µs, Text 3.59 µs and Input 3.24 µs per two frames on Alpha. The
optimizer inlines small procedures and reads record members through
their inserts. Native x86-64 code is faster across division, shifts,
floating-point calls and small allocations. std/base64, JPEG reading
and writing, portable PNG inflate and core audio join the standard
library. The changelog section lists what users get, including the
known ARMv7 LevelReplayPump frame-limit issue. update_version.sh set
the version files and the standard-library inventory, and
site_pages.py regenerated the module pages for 0.7.0.
2026-11-18 11:30:26 -03:00

15 lines
3.5 KiB
HTML

<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="theme-color" content="#f7f3eb"><meta name="description" content="Little-endian binary fields for native Linux programs."><title>std/binary_linux · Ziran</title><link rel="canonical" href="https://ziran-lang.org/std/binary_linux"><link rel="icon" href="../assets/logo-capybara.png" type="image/png"><link rel="stylesheet" href="../styles.css"><script defer src="../site.js"></script></head>
<body><a class="skip-link" href="#main">Skip to content</a><header class="site-header"><div class="site-header-inner"><a class="brand" href="../index.html"><img class="brand-icon" src="../assets/logo-capybara.png" alt="" width="36" height="36"><span>Ziran</span></a><button class="menu-button" type="button" aria-expanded="false" aria-controls="primary-nav">Menu</button><nav class="header-nav" id="primary-nav" aria-label="Primary"><a href="../get-started.html">Get started</a><a href="../examples.html">Examples</a><a href="../targets.html">Targets</a><a href="../modules.html" aria-current="page">Modules</a><a href="../docs.html">Docs</a><a href="../status.html">Status</a><a href="https://github.com/ziranlang/ziran">GitHub ↗</a><button class="theme-toggle" type="button" aria-label="Switch color theme"></button></nav></div></header>
<main id="main" class="article-layout"><div class="article-head"><p class="eyebrow"><a href="../modules.html#std">Modules</a> / Standard library</p><h1>std/binary_linux</h1><p>Little-endian binary fields for native Linux programs. No file format or application record layout is imposed by this module.</p><p class="module-meta"><span class="status-badge is-stable">Stable</span> <span class="module-target">Needs: Native Linux.</span> Shipped in release <a href="https://github.com/ziranlang/ziran/releases/tag/v0.7.0">v0.7.0</a>.</p></div>
<div class="article-grid"><aside class="page-toc"><strong>Declarations</strong><a href="#ReadU64LE">ReadU64LE</a><a href="#WriteU64LE">WriteU64LE</a><a href="#ReadF64LE">ReadF64LE</a><a href="#WriteF64LE">WriteF64LE</a></aside><div class="article-body api-body">
<section><p>Import with <code>#import "std/binary_linux"</code>.</p><div class="api-list">
<div id="ReadU64LE"><code>ReadU64LE :: (bytes: []u8, at: s32) -&gt; u64</code></div>
<div id="WriteU64LE"><code>WriteU64LE :: (bytes: []u8, at: s32, value: u64) -&gt; bool</code></div>
<div id="ReadF64LE"><code>ReadF64LE :: (bytes: []u8, at: s32) -&gt; float64</code></div>
<div id="WriteF64LE"><code>WriteF64LE :: (bytes: []u8, at: s32, value: float64) -&gt; bool</code></div>
</div><p><a class="text-link" href="https://github.com/ziranlang/ziran/blob/master/std/binary_linux.zi">Source ↗</a> · <a class="text-link" href="../modules.html#std">All modules</a></p></section>
</div></div></main>
<footer><div class="footer-top"><a class="brand" href="../index.html"><img class="brand-icon" src="../assets/logo-capybara.png" alt="" width="36" height="36"><span>Ziran</span></a><nav aria-label="Footer"><a href="../get-started.html">Get started</a><a href="../examples.html">Examples</a><a href="../targets.html">Targets</a><a href="../modules.html">Modules</a><a href="../docs.html">Docs</a><a href="../status.html">Status</a><a href="../index.html#support">Support</a><a href="https://github.com/ziranlang/ziran">GitHub ↗</a></nav></div><div class="footer-bottom"><p>A language for useful software.</p><p>© 2026 Kryon Labs · <a href="https://waozi.xyz/">Made by Waozi</a></p></div></footer></body></html>