code wiki / (root) / nx_tabrec.nx

nx_tabrec.nx

buildroot/runtime/nx_tabrec.nx

2015 B31 linesdepth 0pulls 0 transitivereach 77 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_tabrec.nx -- canonical tab-delimited record-field parser. Consolidates the four near-identical extractors (bf_field in nx_blocklist_audit, blv_field in nx_blocklist_view, rg_field in nx_recovery_guard, and the seg_store record readers) into ONE. A seg_store record value is tab-separated fields (the nx_app_store convention); this reads them. Pure functions -- no syscalls, no imports -- so it composes into any stack. license_tier: ORIGINAL

dependencies 0 imports · 16 importers

nx_tabrec.nx nx_blocklist_audit.nx nx_blocklist_seed_demo.nx nx_blocklist_store_gate.nx nx_blocklist_view.nx nx_blocklist_view_gate.nx nx_companion_memory.nx nx_companion_rel.nx nx_persona.nx nx_recovery_guard.nx nx_recovery_guard_gate.nx

diagram shows first 10 each side; +0 more imports, +6 more importers in the complete lists below.

imports: none

imported by: nx_blocklist_audit.nxnx_blocklist_seed_demo.nxnx_blocklist_store_gate.nxnx_blocklist_view.nxnx_blocklist_view_gate.nxnx_companion_memory.nxnx_companion_rel.nxnx_persona.nxnx_recovery_guard.nxnx_recovery_guard_gate.nxnx_resource.nxnx_svcreg.nxnx_tabrec_gate.nxnx_task.nxnx_tool_registry.nxnx_visual_arc.nx

structs

none

consts

none

functions

7func tr_field(buf: *u8, rs: i64, re: i64, idx: i64, out2: *i64) -> i64
14func tr_field_eq(buf: *u8, rlen: i64, idx: i64, z: *u8, out2: *i64) -> i64
23func tr_atoi(buf: *u8, off: i64, len: i64) -> i64 { var v: i64=0; var i: i64=0; while i<len { let d: i64=buf[off+i] as i64; if d>=48 { if d<=57 { v=v*10+(d-48) } } i=i+1 } return v }
27func tr_cat(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { buf[off+i]=s[i]; i=i+1 } return off+i }
29func tr_tab(buf: *u8, off: i64) -> i64 { buf[off]=0x09 as u8; return off+1 }
31func tr_nl(buf: *u8, off: i64) -> i64 { buf[off]=0x0a as u8; return off+1 }
called by 1: main