code wiki / _hdl_build / nx_gen_util.nx

nx_gen_util.nx

buildroot/runtime/_hdl_build/nx_gen_util.nx

1288 B25 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind orphan librarytopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_util.nx -- shared string/scan primitives = the BASE MODULE of the companion/gen OO decomposition. Pure functions extracted VERBATIM from nx_gen_orchestrator (behaviour-preserving). Imported by the orchestrator + every companion object. Object model: companion_arch.md. license_tier: ORIGINAL

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

5func go_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
6func go_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o }
7func go_catb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var o: i64=off; var i: i64=0; while i<n {dst[o]=src[i]; o=o+1; i=i+1} return o }
9func go_contains_ci(hay: *u8, hlen: i64, needle: *u8) -> i64