flix

0.75.2

Util.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 decodeHex(s: String): Result[String, Vector[Int8]]§ Source

Decodes the given hex string s to bytes.

Returns Err if s is not a valid hex string.

def decodeHexString(s: String): Result[String, String]§ Source

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

Returns Err if s is not a valid hex string.

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.

def encodeHex(v: Vector[Int8]): String§ Source

Encodes the given bytes v as a lowercase hex string.

def encodeHexString(s: String): String§ Source

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