nx_dec_emit_test.nx
buildroot/runtime/nx_dec_emit_test.nx
about
nx_dec_emit_test.nx -- KAT for nx_dec_emit_u63.
Asserts:
T1 0 -> "0" (1 byte)
T2 1 -> "1" (1 byte)
T3 9 -> "9" (1 byte)
T4 10 -> "10" (2 bytes)
T5 100 -> "100" (3 bytes)
T6 12345 -> "12345" (5 bytes)
T7 1000000 -> "1000000" (7 bytes)
T8 9999999999 -> "9999999999" (10 bytes)
T9 emit-at-offset writes into the correct slot without clobbering
earlier bytes
T10 Content-Length use case: typical ACME JWS payload size 1234
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_dec_emit.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 19 | func _assert_bytes(buf: *u8, exp: *u8, n: i64) -> i64 called by 1: main |
| 28 | func main() -> i64 |