def literal.pack

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

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

542def literal.pack(b: Bytes.Bytes, huff: Bool) -> Bytes.Bytes:
543  Bytes.Bytes{+length, buf} = b
544  Bytes.concat([integer.encode(Bool.pick(U32, huff, 128, 0), 127, length), Bytes.Bytes{length, buf}])

Uses (7)

Used by (1)