code wiki / (root) / nx_doc_print.nx

nx_doc_print.nx

buildroot/runtime/nx_doc_print.nx

9349 B146 linesdepth 6pulls 17 transitivereach 0 importersview sourcekind tooltopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_print.nx -- PRINT A REAL DOCUMENT, end to end, 100% sovereign: text -> grayscale page (nx_doc_layout + nx_font8x8) -> URF (nx_urf) -> Print-Job (nx_ipp_submit) -> POST (nx_ipp_transport) -> poll job-state, and record REAL toner consumed (nx_toner_meter/ledger). Outward-facing (consumes paper/toner): operator approved live printing. never-brick (#26): normal print job, no firmware. license_tier: ORIGINAL genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 12 imports · 0 importers

nx_syscalls.nx nx_font8x8.nx nx_doc_layout.nx nx_doc_to_urf.nx nx_pwg_rle.nx nx_urf.nx nx_ipp_codec.nx nx_ipp_transport.nx nx_ipp_submit.nx nx_toner_meter.nx nx_doc_print.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_font8x8.nxnx_doc_layout.nxnx_doc_to_urf.nxnx_pwg_rle.nxnx_urf.nxnx_ipp_codec.nxnx_ipp_transport.nxnx_ipp_submit.nxnx_toner_meter.nxnx_toner_ledger.nxnx_toner_store.nx

imported by: nobody (leaf or entry point)

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

main p sys_write sys_mmap sapp font8x8_table sys_mmap ↻ fg nx_doc_to_urf nx_doc_render nx_doc_blit nx_doc_glyph nx_toner_coverage_ppm nx_urf_page_header nx_urf_be32 nx_rle_encode_page nx_rle_line_eq nx_rle_encode_line nx_rle_px_eq nx_urf_file_header nx_urf_be32 ↻ pn sys_write ↻ sys_mmap ↻ sys_openat_wr write_all sys_write ↻ sys_close nx_ipt_verdict_name nx_ipp_status nx_ipp_get_u16 sys_exit nx_ipp_get_enum nx_ipp_find nx_ipp_strlen nx_ipp_get_u16 ↻ nx_ipp_name_eq nx_ipp_get_u32 nx_tstore_load sys_mmap ↻

structs

none

consts

19const K_MAGIC_2550: i64 = 2550
20const K_MAGIC_3300: i64 = 3300
21const K_MAGIC_8192: i64 = 8192
22const K_MAGIC_262144: i64 = 262144
23const K_MAGIC_10000: i64 = 10000
24const K_MAGIC_4096: i64 = 4096
25const K_MAGIC_131072: i64 = 131072
26const K_MAGIC_2048: i64 = 2048
27const K_MAGIC_32768: i64 = 32768
28const K_MAGIC_1500: i64 = 1500

functions

30func p(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
31func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
40func sapp(buf: *u8, off: i64, s: *u8) -> i64
called by 1: main
45func write_all(fd: i64, buf: *u8, len: i64) -> i64
called by 1: main calls 1: sys_write
51func main() -> i64