nx_intake_profile.nx
buildroot/runtime/nx_intake_profile.nx
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
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
| 11 | func 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 |
| 14 | func ip_key(respondent: *u8, out: *u8) -> i64 |
| 26 | func ip_put_latest(prefix: *u8, respondent: *u8, cid: *u8) -> i64 |
| 36 | func ip_exists(prefix: *u8, respondent: *u8) -> i64 |
| 48 | func ip_get(prefix: *u8, respondent: *u8, qid: *u8, dflt: i64) -> i64 |
| 68 | func ip_get_pos(prefix: *u8, respondent: *u8, qid: *u8, dflt: i64) -> i64 |