code wiki / (root) / nx_lib_pdf_stream_diag.nx

nx_lib_pdf_stream_diag.nx

buildroot/runtime/nx_lib_pdf_stream_diag.nx

3154 B68 linesdepth 7pulls 8 transitivereach 0 importersview sourcekind tooltopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_pdf_stream_diag.nx -- dump a decompressed CONTENT stream from the FOP PDF so its exact text-showing encoding (literal vs hex, 1- vs 2-byte, Tf font) is visible. Ends the guessing about why extraction yields numbers.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_zlib_wrap.nx nx_lib_pdf_stream_diag.nx

imports: nx_syscalls.nxnx_zlib_wrap.nx

imported by: nobody (leaf or entry point)

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

main 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 sd_puts sys_write ↻ sd_find sd_putn sys_mmap ↻ sys_write ↻ sd_wr sys_write ↻

structs

none

consts

6const K_MAGIC_8388608: i64 = 8388608

functions

8func sd_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
9func sd_wr(p: *u8, n: i64) -> i64 { sys_write(1, p, n); return 0 }
called by 1: main calls 1: sys_write
10func sd_putn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
17func sd_find(hay: *u8, hayn: i64, start: i64, needle: *u8, nlen: i64) -> i64
called by 1: main
29func main() -> i64