code wiki / (root) / nx_fetch_decode_capture_t253.nx

nx_fetch_decode_capture_t253.nx

buildroot/runtime/nx_fetch_decode_capture_t253.nx

2022 B22 linesdepth 24pulls 168 transitivereach 1 importersview sourcekind tooltopic fetch
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 1 importers

nx_fetch_status_live_gate_t252.nx nx_fs_create_lib.nx nx_sha256.nx nx_fetch_decode_capture_t253.n nx_gzip_replay_gate_t253.nx

imports: nx_fetch_status_live_gate_t252.nxnx_fs_create_lib.nxnx_sha256.nx

imported by: nx_gzip_replay_gate_t253.nx

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hsl_size hf_store_load nx_trust_store_load_from_c sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal hf_fetch_mode hf_fetch_mode_headers

structs

none

consts

none

functions

4func hd_save(path:*u8,b:*u8,n:i64)->i64{let rc:i64=fxc_create(path,b,n);if rc!=n{return rc};let d:*u8=sys_mmap_try(32);sha256_digest(b,n,d);let hex:*u8="0123456789abcdef";fa_puts("compressed_sha256=");var i:i64=0;while i<32{sys_write(1,(hex as i64+(d[i] as i64)/16) as *u8,1);sys_write(1,(hex as i64+(d[i] as i64)%16) as *u8,1);i=i+1};fa_puts("\n");sys_munmap_direct(d,32);return n}
called by 2: mainmain calls 2: fxc_createsha256_digest
5func main(argc:i64,argv:*i64)->i64