B64.b64.go: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/b64.bend as B64 Lines 63-75 of emerging-ezhttp@0.21.0.0/src/b64.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/b64.bend&start_line=63&end_line=75 import Base # octets to Base64, three at a time (RFC 4648 ยง4) def b64.go(bs: List<&2, U32>, phase: Phase) -> String: match bs: case []: b64.end(phase) case h <> t: match phase: case Need3{}: b64.go(t, Need2{h}) case Need2{first}: b64.go(t, Need1{first, h}) case Need1{first, second}: b64.quad(first, second, h, 0n) ++ b64.go(t, Need3{}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/b64.bend&name=Phase https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/b64.bend&name=b64.end https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/b64.bend&name=b64.quad