~/bend-docscommunity

base64.bend checks

raw source on the hub · import element-text@0.1.0.0/base64.bend as Base64

1 import
import Base

Definitions

def value source · line 7 · raw

@+c:U32 -> U32

def go source · line 14 · raw

@s:String -> @+acc:U32 -> @+bits:U32 -> @+out:List<&2, U32> -> List<&2, U32>

acc holds bits pending bits (fewer than 8 between characters).

def decode source · line 28 · raw

@+s:String -> List<&2, U32>

def sym source · line 33 · raw

@+v:U32 -> Char

def enc_go source · line 37 · raw

@bs:List<&2, U32> -> List<&2, Char>

def encode source · line 54 · raw

@+bs:List<&2, U32> -> String

Bytes (0..255) as base64 with '=' padding (RFC 4648 section 4).