def emit.bits

bend-kit-http2@0.4.0.0 · huffman.bend:1172

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

Uses (6)

Used by (1)