XU XUv0.16.0

#encoding/ascii85

import: #encoding/ascii85

counts: 3 functions, 0 methods, 0 types, 0 constants, 0 method sets

Ascii85 encode/decode; z is four zero bytes.

max_encoded_len

XuAPI
pub fn max_encoded_len(n int) int

Purpose

Max encoded len.

Parameters

n int
count, length, or limit (int)

Returns

int — a value of this type

encode_to_string

XuAPI
pub fn encode_to_string(src &string) string

Purpose

Encode to a string.

Parameters

src &string
source (read-only borrow; caller keeps the original; type &string)

Returns

string — result string

decode_string

XuAPI
pub fn decode_string(src &string) string

Purpose

Decode from a string. Throws on failure; handle the error or propagate it to the caller.

Parameters

src &string
source (read-only borrow; caller keeps the original; type &string)

Returns

string — result string