def utf8.push2
import bend-kit-encoding@0.5.0.0/encoding.bend as Encodingimport Base
47def utf8.push2(+c: U32, o: Out, small: Bool) -> Out:
48 match small:
49 case True{}:
50 put(put(o, (192 + U32.shrn(c, 6n) : U32)), utf8.cont(c, 0n))
51 case False{}:
52 utf8.push3(c, o, U32.is_lt(c, 65536))