def literal.fits

bend-kit-http2@0.4.0.0 · hpack.bend:247

import bend-kit-http2@0.4.0.0/hpack.bend as Hpack
import 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)

Uses (9)

Used by (1)