nx_nxa_check.nx
buildroot/runtime/nx_nxa_check.nx
about
nx_nxa_check.nx -- the NXA format's fsck. Validates an .nxa BEYOND the checksums nxa_find
already enforces: CLUS coverage invariants (every triangle in exactly one cluster, counts
<=128, cluster bounds truly CONTAIN their triangles' vertices). A format is only as strong
as the tool that refuses a bad file -- this is that tool ("a session must remember < a tool
that cannot do the wrong thing").
usage: nx_nxa_check <file.nxa> rc: 0 green, 1 invariant broken, 5 corrupt, 6 future
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_nxa.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const K_MAGIC_65535: i64 = 65535 |
| 11 | const K_MAGIC_32767: i64 = 32767 |
| 12 | const K_MAGIC_65536: i64 = 65536 |
| 13 | const K_MAGIC_4096: i64 = 4096 |
| 14 | const K_MAGIC_13421772: i64 = 13421772 |
| 15 | const K_MAGIC_20132659: i64 = 20132659 |
functions
| 17 | func ncw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 18 | func ncn(v: i64) -> i64 |
| 32 | func nc_i16(w: i64, sh: i64) -> i64 called by 1: main |
| 38 | func main(argc: i64, argv: *i64) -> i64 |