def parse.full
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
280def parse.full(enough: Bool, max: U32, +len: U32, +kind: U32, +flags: U32, +stream: U32, b: Bytes.Bytes) -> Decode:
281 match enough:
282 case True{}:
283 parse.payload(max, len, kind, flags, stream, b)
284 case False{}:
285 Need{b}