code wiki / (root) / nx_intake_profile.nx

nx_intake_profile.nx

buildroot/runtime/nx_intake_profile.nx

3167 B72 linesdepth 8pulls 9 transitivereach 13 importersview sourcekind librarytopic intake
docsdependenciesstructsconstsfunctions

about

nx_intake_profile.nx -- R6c: the LATEST-PROFILE loader, so the live dashboard + before-you-buy run on the PERSON's submitted numbers, not the demo. When the intake handler records a profile (a content-addressed survey record keyed by its CID), it ALSO writes a pointer "intake:latest:<respondent>" -> that CID (last- wins). `ip_get` reads the pointer, loads the profile, and returns a field's value -- or a DEFAULT if the person hasn't submitted yet (graceful fallback: real numbers when present, the worked example otherwise). Reuses nx_survey (sv_load/sv_get/sv_atoi) + nx_seg_store. No floats, no hardware writes. license_tier: ORIGINAL

dependencies 3 imports · 4 importers

nx_syscalls.nx nx_seg_store.nx nx_survey.nx nx_intake_profile.nx nx_browser.nx nx_finance_web.nx nx_intake_handler.nx nx_intake_profile_gate.nx

imports: nx_syscalls.nxnx_seg_store.nxnx_survey.nx

imported by: nx_browser.nxnx_finance_web.nxnx_intake_handler.nxnx_intake_profile_gate.nx

structs

none

consts

none

functions

11func ip_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ip_put_latest
14func ip_key(respondent: *u8, out: *u8) -> i64
26func ip_put_latest(prefix: *u8, respondent: *u8, cid: *u8) -> i64
36func ip_exists(prefix: *u8, respondent: *u8) -> i64
called by 1: main calls 4: sys_mmapip_keyss_openss_hget
48func ip_get(prefix: *u8, respondent: *u8, qid: *u8, dflt: i64) -> i64
68func ip_get_pos(prefix: *u8, respondent: *u8, qid: *u8, dflt: i64) -> i64