def emit.bits
import bend-kit-http2@0.4.0.0/huffman.bend as Huffmanimport Base
1172def emit.bits(n: Nat, +code: U32, st: Builder) -> Builder:
1173 match n:
1174 case 0n:
1175 st
1176 case 1n+p:
1177 +p = p
1178 emit.bits(p, code, emit.bit(((code >> p) .&. 1 : U32), st))