def parse
import bend-kit-http2@0.4.0.0/http2.bend as Http2import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
309# A partial header or payload returns Need with the original input intact.
310def parse(max: U32, b: Bytes.Bytes) -> Decode:
311 Bytes.Bytes{+n, buf} = b
312 parse.start(U32.is_lt(n, 9), max, Bytes.Bytes{n, buf})