nx_http_dechunk.nx
buildroot/runtime/nx_http_dechunk.nx
about
nx_http_dechunk.nx -- sovereign HTTP/1.1 chunked transfer-encoding decoder.
Fills the gap BOTH nx_html_to_text and nx_browse_text self-document as MISSING
("Chunked transfer dechunking before render"). Decodes the wire framing
<hexsize>[;chunk-ext]CRLF <data> CRLF ... 0 CRLF [trailers] CRLF
into a contiguous body. Reusable across the whole browser/research stack
(UXF arc R1b needs it -- the Avro fetch returned BK=2 = chunked).
DEFENSIVE AT THE BOUNDARY (Rule 12 -- network input is untrusted): any malformed
framing returns a negative verdict and NEVER writes out of bounds.
returns: decoded length (>=0) | (0-1) OVERFLOW (out_cap too small) | (0-2) MALFORMED
No firmware/persistent-hardware writes (Rule 26: fail-safe by construction).
license_tier: ORIGINAL
dependencies 1 imports · 6 importers
imports: nx_syscalls.nx
imported by: nx_entity_media.nxnx_entity_seeds.nxnx_http_dechunk_test.nxnx_ipp_transport.nxnx_uxf_extract.nxnx_uxf_extract_avro.nx
structs
| none |
consts
| none |
functions
| 17 | func hd_hexval(b: i64) -> i64 called by 1: nx_http_dechunk |
| 24 | func nx_http_dechunk(src: *u8, n: i64, out: *u8, out_cap: i64) -> i64 |