XU XUv0.16.0

#encoding/base32

导入方式: #encoding/base32

公开 API: 14 函数, 0 方法, 0 类型, 0 常量, 0 方法集

Std/Hex 与 Raw 变体。

encode_to_string

XuAPI
pub fn encode_to_string(s string) string

用途

编码为字符串。

参数

s string
源字符串(string)

返回值

string — 结果字符串

decode_string

XuAPI
pub fn decode_string(s string) string

用途

从字符串解码。

参数

s string
源字符串(string)

返回值

string — 结果字符串

encoded_len

XuAPI
pub fn encoded_len(n int) int

用途

执行 encoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值

decoded_len

XuAPI
pub fn decoded_len(n int) int

用途

执行 decoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值

hex_encode_to_string

XuAPI
pub fn hex_encode_to_string(s string) string

用途

十六进制编码到字符串。

参数

s string
源字符串(string)

返回值

string — 结果字符串

hex_decode_string

XuAPI
pub fn hex_decode_string(s string) string

用途

十六进制解码字符串。

参数

s string
源字符串(string)

返回值

string — 结果字符串

hex_encoded_len

XuAPI
pub fn hex_encoded_len(n int) int

用途

执行 hex encoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值

hex_decoded_len

XuAPI
pub fn hex_decoded_len(n int) int

用途

执行 hex decoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值

raw_encode_to_string

XuAPI
pub fn raw_encode_to_string(s string) string

用途

执行 raw encode to string 操作。

参数

s string
源字符串(string)

返回值

string — 结果字符串

raw_decode_string

XuAPI
pub fn raw_decode_string(s string) string

用途

执行 raw decode string 操作。

参数

s string
源字符串(string)

返回值

string — 结果字符串

raw_hex_encode_to_string

XuAPI
pub fn raw_hex_encode_to_string(s string) string

用途

执行 raw hex encode to string 操作。

参数

s string
源字符串(string)

返回值

string — 结果字符串

raw_hex_decode_string

XuAPI
pub fn raw_hex_decode_string(s string) string

用途

执行 raw hex decode string 操作。

参数

s string
源字符串(string)

返回值

string — 结果字符串

raw_encoded_len

XuAPI
pub fn raw_encoded_len(n int) int

用途

执行 raw encoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值

raw_decoded_len

XuAPI
pub fn raw_decoded_len(n int) int

用途

执行 raw decoded len 操作。

参数

n int
数量、长度或上限(int)

返回值

int — 该类型的值