code wiki / (root) / nx_cbor_test.nx

nx_cbor_test.nx

buildroot/runtime/nx_cbor_test.nx

4873 B145 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic cbor
docsdependenciesstructsconstsfunctions

about

nx_cbor_test.nx -- RFC 8949 encoder shape verification. Tests against the spec's reference byte patterns so we know downstream CBOR consumers (Python's cbor2, JS cbor-x, Rust's ciborium, etc.) will round-trip the substrate's output.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_cbor.nx nx_cbor_test.nx

imports: nx_syscalls.nxnx_tier.nxnx_cbor.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_cbor_emit_u64 nx_cbor_put_length nx_cbor_put_byte _nx_cbor_pow2 nx_cbor_emit_i64 nx_cbor_put_length ↻ nx_cbor_emit_array_header nx_cbor_put_length ↻ nx_cbor_emit_map_header nx_cbor_put_length ↻ nx_cbor_emit_span nx_cbor_emit_map_header ↻ nx_cbor_emit_u64 ↻ nx_cbor_emit_i64 ↻ nx_cbor_emit_array_header ↻ _nx_cbor_pow2 ↻

structs

none

consts

none

functions

11func main() -> nx_int