nx_gguf_meta_test.nx
buildroot/runtime/nx_gguf_meta_test.nx
about
nx_gguf_meta_test.nx -- smoke for nx_gguf_meta.nx.
Builds a synthetic GGUF with 4 metadata entries:
"n_layers" U32 -> 32
"rope_base" F32 -> 10000.0
"arch" STRING -> "llama"
"vocab" ARRAY of U32 with 3 elements -> [100, 200, 300]
Verifies:
- find returns OK with correct value_off + type for each
- typed readers produce expected values
- missing key returns NOT_FOUND
- array helpers expose inner_type + count + first_elt_off
- array element walk via array_advance produces correct values
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_gguf.nxnx_gguf_meta.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
| none |
functions
| 22 | func _byte_equal(a: *u8, b: *u8, n: nx_int) -> nx_int called by 1: main |
| 31 | func main() -> i64 |