def literal.fits
import bend-kit-http2@0.4.0.0/hpack.bend as Hpackimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
247def literal.fits(ok: Bool, huff: Bool, b: Bytes.Bytes, +at: U32, +count: U32, +length: U32) -> Maybe<&1, Cursor & String>:
248 match ok:
249 case False{}:
250 None{}
251 case True{}:
252 literal.slice(Bytes.slice(b, at, count), huff, at, count, length)