nx_bundle_ingest_selected_candidate_t144.nx
buildroot/runtime/nx_bundle_ingest_selected_candidate_t144.nx
about
nx_bundle_ingest_lib.nx -- THE COMMUNITY BUNDLE WALKER (/compare/modding MD1 bundle_ingest, 2026-09-06): a ZIP from a rip
page or a mod host is walked by CONTENT TYPE, never by filename. Composes the incumbents and adds no second ruler:
nx_zip.nx the central-directory reader (EOCD -> CD -> local header), the reflected CRC-32
nx_deflate.nx RFC 1951 INFLATE for method-8 members, sized from the member's DECLARED usize
nx_assetprobe_lib.nx the ONE identify / classify / claim ruler (the CLI probe and this walker share it)
Every member gets a row: method, sizes, the magic the bytes carry, the category that magic implies, the extension's
claim, the probe verdict, the inflate outcome, and -- for a texture -- which model or material member REFERENCES it by
basename inside its own bytes (the mesh's material slots, read from the mesh, not guessed from a folder). A member the
ruler cannot type is REPORTED as unknown, never dropped; a method the walker cannot open is REPORTED as unsupported.
The partition (model material texture motion audio video bundle unknown) is asserted to SUM to the member count.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 4 imports · 3 importers
imports: nx_syscalls.nxnx_zip_selected_candidate_t144.nxnx_deflate.nxnx_assetprobe_lib.nx
imported by: nx_bundle_ingest_cli_candidate_t144.nxnx_bundle_ingest_selected_gate_t144.nxnx_sevenz_selected_candidate_t144.nx
structs
| none |
consts
| 17 | const BI_METHOD_STORE: i64 = 0 |
| 18 | const BI_METHOD_DEFLATE: i64 = 8 |
| 20 | const BI_INF_STORED: i64 = 0 // method 0: bytes read in place, CRC verified |
| 21 | const BI_INF_OK: i64 = 1 // method 8: inflated to exactly usize, CRC verified |
| 22 | const BI_INF_FAILED: i64 = 2 // the stream or the CRC refused |
| 23 | const BI_INF_UNSUPPORTED: i64 = 3 // a method this walker does not open (reported by number) |
| 24 | const BI_INF_NOT_READ: i64 = 5 |
| 25 | const BI_INF_SIZE_MISMATCH: i64 = 6 |
| 26 | const BI_INF_CRC_MISMATCH: i64 = 7 |
| 27 | const BI_INF_LIMIT: i64 = 8 |
| 28 | const BI_INF_BADLOCAL: i64 = 4 // local header missing or outside the file |
| 30 | const BI_V_UNIDENTIFIED: i64 = 0 |
| 31 | const BI_V_UNCLAIMED: i64 = 1 |
| 32 | const BI_V_AGREE: i64 = 2 |
| 33 | const BI_V_DISAGREE: i64 = 3 |
| 34 | const BI_V_UNREAD: i64 = 4 // no bytes to probe (inflate failed or unsupported) |
| 36 | const BI_BIND_NA: i64 = 0 |
| 37 | const BI_BIND_BOUND: i64 = 1 |
| 38 | const BI_BIND_UNBOUND: i64 = 2 |
| 40 | const BI_F_METHOD: i64 = 0 |
| 41 | const BI_F_CSIZE: i64 = 1 |
| 42 | const BI_F_USIZE: i64 = 2 |
| 43 | const BI_F_MAGIC: i64 = 3 |
| 44 | const BI_F_CAT: i64 = 4 |
| 45 | const BI_F_CLAIM: i64 = 5 |
| 46 | const BI_F_VERDICT: i64 = 6 |
| 47 | const BI_F_INFLATE: i64 = 7 |
| 48 | const BI_F_BIND: i64 = 8 |
| 49 | const BI_F_BOUND_TO: i64 = 9 |
| 50 | const BI_F_NAMEOFF: i64 = 10 |
| 51 | const BI_F_NAMELEN: i64 = 11 |
| 52 | const BI_F_DATA: i64 = 12 |
| 53 | const BI_F_DLEN: i64 = 13 |
| 54 | const BI_F_CRC: i64 = 14 |
| 55 | const BI_F_CRC_ACTUAL: i64 = 15 |
| 56 | const BI_F_N: i64 = 16 |
| 58 | const BI_P_MODEL: i64 = 0 |
| 59 | const BI_P_MATERIAL: i64 = 1 |
| 60 | const BI_P_TEXTURE: i64 = 2 |
| 61 | const BI_P_MOTION: i64 = 3 |
| 62 | const BI_P_AUDIO: i64 = 4 |
| 63 | const BI_P_VIDEO: i64 = 5 |
| 64 | const BI_P_BUNDLE: i64 = 6 |
| 65 | const BI_P_UNKNOWN: i64 = 7 |
| 66 | const BI_P_STORED: i64 = 8 |
| 67 | const BI_P_INFLATED: i64 = 9 |
| 68 | const BI_P_FAILED: i64 = 10 |
| 69 | const BI_P_UNSUPPORTED: i64 = 11 |
| 70 | const BI_P_BOUND: i64 = 12 |
| 71 | const BI_P_UNBOUND: i64 = 13 |
| 72 | const BI_P_N: i64 = 16 |
| 73 | const BI_ZIP_FLD_N: i64 = 8 |
| 74 | const BI_NAME_CAP: i64 = 1024 |
functions
| 76 | func bi_rec(tbl: *i64, i: i64) -> *i64 { return ((tbl as i64) + i * BI_F_N * 8) as *i64 } |
| 77 | func bi_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c } |
| 80 | func bi_count(b: *u8, n: i64) -> i64 { return nxzip_count(b, n) } |
| 84 | func bi_local_data(b: *u8, n: i64, fld: *i64) -> i64 |
| 125 | func bi_decode_member(b: *u8, n: i64, fld: *i64, r: *i64, limit: i64) -> i64 |
| 155 | func bi_basename(names: *u8, off: i64, len: i64, out: *u8, cap: i64) -> i64 |
| 167 | func bi_contains_ci(hay: *u8, hn: i64, needle: *u8, nn: i64) -> i64 |
| 186 | func bi_walk_selected(b: *u8, n: i64, tbl: *i64, names: *u8, ncap: i64, options: *i64) -> i64 called by 3: bix_mainbi_walkmain calls 7: sys_mmapbi_recsys_munmapbi_decode_memberap_claimap_identify+1 |
| 246 | func bi_walk(b: *u8, n: i64, tbl: *i64, maxm: i64, names: *u8, ncap: i64) -> i64 |
| 259 | func bi_bind_textures(tbl: *i64, m: i64, names: *u8) -> i64 |
| 286 | func bi_partition(tbl: *i64, m: i64, p: *i64) -> i64 |
| 315 | func bi_verdict_name(v: i64) -> *u8 called by 1: bic_row |
| 322 | func bi_inflate_name(f: i64) -> *u8 |
| 333 | func bi_bind_name(v: i64) -> *u8 called by 1: bic_row |