XU XUv0.8.8
中文

API

#encoding/ascii85

import: #encoding/ascii85

counts: 3 fns, 0 methods, 0 types, 0 consts, 0 ifaces

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 (borrowed; caller keeps it; type &string)

Returns

string — result string

decode_string

XuAPI
pub fn decode_string(src &string) string

Purpose

Decode from a string. Throws on failure.

Parameters

src &string
source (borrowed; caller keeps it; type &string)

Returns

string — result string