code wiki / (root) / nx_asset_page_lib.nx

nx_asset_page_lib.nx

buildroot/runtime/nx_asset_page_lib.nx

3358 B81 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind librarytopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_page_lib.nx -- the asset page's decisions a gate can drive in-process (2026-09-17). First resident: does this manifest show a live GLB viewer canvas at all? The emitter wrote the viewer script tag on EVERY page, so an image-only page (a judged photograph, a media-judge report) carried a reference to a script it never uses, and nx_page_verify reads that reference BROKEN while the viewer file is absent (debt 1787785512, superseded by 1787786411: the GLB half of that debt stays open, this lib only stops image-only pages from referencing a script they never needed). The predicate reads the FORMAT column of tasset and tasset2 rows, never a substring: a label that says "glb" is not a canvas. Consumers: nx_asset_page (the emitter), nx_asset_page_gate (planted manifests). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_asset_page_lib.nx nx_asset_page.nx nx_asset_page_gate.nx

imports: nx_syscalls.nx

imported by: nx_asset_page.nxnx_asset_page_gate.nx

structs

none

consts

11const APL_TAB: i64 = 9
12const APL_NL: i64 = 10
13const APL_CR: i64 = 13
14const APL_COL_TYPE: i64 = 0
15const APL_COL_FORMAT: i64 = 2 // tasset \t <tier> \t <format> \t <href> \t <label>: the format is the third column
16const APL_SPAN_SLOTS: i64 = 2
17const APL_I64: i64 = 8

functions

20func apl_is(buf: *u8, a: i64, b: i64, lit: *u8) -> i64
called by 1: apl_has_glb
32func apl_col(buf: *u8, ls: i64, le: i64, k: i64, span: *i64) -> i64
called by 2: mainapl_has_glb
55func apl_has_glb(m: *u8, mn: i64) -> i64