def decode.symbol

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

import bend-kit-http2@0.4.0.0/huffman.bend as Huffman
import Base

1232def decode.symbol(m: Maybe<&2, U32>, +bits: U32, +width: U32, rev: String) -> Maybe<&2, Decoder>:
1233  match m:
1234    case Some{octet}:
1235      decode.found(octet, rev)
1236    case None{}:
1237      decode.pending(U32.is_lt(width, 30), bits, width, rev)

Uses (7)

Used by (1)