flix

0.70.0

Codec

Definitions

def decodeBase64(s: String): Result[String, Vector[Int8]] Source

Decodes the given Base64 string s to bytes.

Returns Err if s is not valid Base64.

def decodeBase64String(s: String): Result[String, String] Source

Decodes the given Base64 string s to a UTF-8 string.

Returns Err if s is not valid Base64.

def encodeBase64(v: Vector[Int8]): String Source

Encodes the given bytes v as a Base64 string.

def encodeBase64String(s: String): String Source

Encodes the given string s (as UTF-8 bytes) as a Base64 string.