nx_safetensors_load_gate.nx
buildroot/runtime/nx_safetensors_load_gate.nx
about
nx_safetensors_load_gate.nx -- proof of the safetensors->f32 loader on a synthetic in-memory blob (header JSON +
F32 and BF16 tensors), verifying header/offset parse + exact value reads. expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_f32_cvt.nxnx_safetensors_load.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
| 7 | func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return sys_write(1, s, n) } |
| 8 | func gn(v: i64) -> i64 |
| 17 | func put_u64le(buf: *u8, off: i64, v: i64) -> i64 { var i: i64=0; while i<8 { buf[off+i]=((v>>(i*8))&0xff) as u8; i=i+1 } return 0 } called by 1: main |
| 18 | func put_u32le(buf: *u8, off: i64, v: i64) -> i64 { var i: i64=0; while i<4 { buf[off+i]=((v>>(i*8))&0xff) as u8; i=i+1 } return 0 } called by 1: main |
| 19 | func put_str(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ buf[off+i]=s[i]; i=i+1 } return off+i } called by 1: main |
| 21 | func main(argc: i64, argv: *i64) -> i64 |