def b64.pads
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
724# The count of '=' at the end of s.
725def b64.pads(s: String, +run: U32) -> U32:
726 match s:
727 case SNil{}:
728 run
729 case SCon{Chr{+c}, t}:
730 b64.pads(t, Bool.pick(U32, U32.is_eq(c, 61), (run + 1 : U32), 0))