Base64.B64.next.go: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/base64.bend as Base64 Lines 44-56 of bend-kube-runtime@0.2.0.0/src/base64.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/base64.bend&start_line=44&end_line=56 import Base def B64.next.go(+acc: U32, +bits: U32, ok: Bool, +v: U32, skip: Bool, bad: Bool, full: Bool) -> B64: match skip bad full: case True{} _ _: B64{acc, bits, ok} case False{} True{} _: B64{acc, bits, False{}} case False{} False{} True{}: # 8 bits are ready: the byte leaves, bits - 2 stay B64{(((acc << 6n) .|. v) .&. ((1 << U32.to_nat((bits - 2 : U32))) - 1) : U32), (bits - 2 : U32), ok} case False{} False{} False{}: B64{((acc << 6n) .|. v : U32), (bits + 6 : U32), ok} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/base64.bend&name=B64