code wiki / _hdl_build / _inflate_stored_authored.nx

_inflate_stored_authored.nx

buildroot/runtime/_hdl_build/_inflate_stored_authored.nx

1587 B31 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic inflate
docsdependenciesstructsconstsfunctions

about

AUTHORED BY THE NISHI BUILDER (nx_module_author inflate-stored template) -- DEFLATE block loop, bits-up

dependencies 1 imports · 0 importers

nx_syscalls.nx _inflate_stored_authored.nx

imports: nx_syscalls.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 inflate_stored sys_mmap ↻ ibr sys_exit

structs

none

consts

none

functions

3func ibr(buf: *u8, len: i64, cursor: *i64, n: i64) -> i64 { var val: i64=0; var got: i64=0; while got<n { let bp: i64=cursor[0]>>3; if bp>=len { return 0-1 } let bit: i64=((buf[bp] as i64)>>(cursor[0]&7))&1; val=val|(bit<<got); cursor[0]=cursor[0]+1; got=got+1 } return val }
called by 1: inflate_stored
4func inflate_stored(src: *u8, srclen: i64, out: *u8) -> i64
called by 1: main calls 2: sys_mmapibr
22func main() -> i64