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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sd_puts sys_write sd_find nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_bits_remainin _bs_peek_byte nx_bitstream_byte_align nx_bitstream_read_byte_ali nx_bitstream_byte_align ↻ _deflate_build_static_litl sys_mmap ↻ nx_huffman_build sys_mmap ↻ _deflate_build_static_dist sys_mmap ↻ nx_huffman_build ↻ _deflate_decode_huffman_bl nx_huffman_decode_lsb nx_bitstream_read_lsb ↻ _deflate_length_base _deflate_length_extra nx_bitstream_read_lsb ↻ _deflate_distance_base _deflate_distance_extra _deflate_copy_overlap

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