code wiki / (root) / nx_bgzf_test.nx

nx_bgzf_test.nx

buildroot/runtime/nx_bgzf_test.nx

5555 B141 linesdepth 7pulls 12 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_bgzf_test.nx -- KAT for BGZF stored-block writer + EOF marker. Section A -- nx_bgzf_eof_marker: byte-exact match against the 28-byte SAMv1 ยง4.1.2 canonical sequence. Section B -- nx_bgzf_write_stored_block: gzip header / XLEN / BC extra subfield / DEFLATE BTYPE=00 / payload / CRC32 / ISIZE for payload "Hi" + length-0 + reject paths. Section C -- round-trip: feed the written block back through nx_gzip_inflate; verify recovered payload matches. expect_exit: 0 license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_const.nx nx_bgzf.nx nx_gzip_wrap.nx nx_crc32.nx nx_bgzf_test.nx

imports: nx_syscalls.nxnx_const.nxnx_bgzf.nxnx_gzip_wrap.nxnx_crc32.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 nx_bgzf_eof_marker nx_bgzf_write_stored_block nx_le_write_u16 nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at nx_le_write_u32 nx_crc32 ↻ nx_gzip_inflate sys_mmap ↻ _gz_read_u32_le _gz_read_u16_le _gz_skip_cstring 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 ↻

structs

none

consts

none

functions

21func main() -> i64