def literal

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

import bend-kit-http2@0.4.0.0/hpack.bend as Hpack
import Base

258def literal(c: Cursor) -> Maybe<&1, Cursor & String>:
259  with_taken(Cursor & String, take(c), cursor => +first =>
260    with_taken(Cursor & String, integer.after(first, 127, cursor), cursor => count =>
261      literal.bytes(U32.is_ne((first .&. 128 : U32), 0), cursor, count)))

Uses (11)

Used by (2)