nx_multi_bundle.nx
buildroot/runtime/nx_multi_bundle.nx
about
nx_multi_bundle.nx -- N-character measurement holder built on N v7_bundles.
Per the multi-character cardinal: existing 28 detectors run per-character
unchanged. This primitive just stores N copies of nx_v7_bundle in a flat
array with index accessors. No detector rewrite needed — caller iterates
over characters and runs the same detector on each character's bundle.
Layout: flat-array of (NX_V7_BUNDLE_FIELDS * N) i64 + header (count).
header: bundles[0] = character_count
then character i's bundle starts at offset HEADER + i * NX_V7_BUNDLE_FIELDS.
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_v7_bundle.nx
imported by: nx_multi_pair_test.nx
structs
| none |
consts
| 21 | const NX_MULTI_MAX_CHARS: i64 = 6 // D&D-party scale |
| 22 | const NX_MULTI_HEADER: i64 = 1 // 1 slot for character_count |
functions
| 25 | func nx_multi_bundle_alloc(max_chars: i64) -> *i64 |
| 36 | func nx_multi_bundle_set_count(multi: *i64, n: i64) -> i64 called by 1: main |
| 43 | func nx_multi_bundle_count(multi: *i64) -> i64 called by 1: main |
| 49 | func nx_multi_bundle_char(multi: *i64, i: i64) -> *i64 |
| 57 | func nx_multi_bundle_set_face(multi: *i64, char_i: i64, |
| 64 | func nx_multi_bundle_set_torso(multi: *i64, char_i: i64, |
| 71 | func nx_multi_bundle_set_eye(multi: *i64, char_i: i64, |