XU XUv0.8.8
EN

API

#encoding/base32

import: #encoding/base32

counts: 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长度。

参数

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

返回

int — 该类型的值

decoded_len

XuAPI
pub fn decoded_len(n int) int

用途

decoded长度。

参数

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

用途

十六进制encoded长度。

参数

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

返回

int — 该类型的值

hex_decoded_len

XuAPI
pub fn hex_decoded_len(n int) int

用途

十六进制decoded长度。

参数

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

返回

int — 该类型的值

raw_encode_to_string

XuAPI
pub fn raw_encode_to_string(s string) string

用途

raw编码到字符串。

参数

s string
源字符串(string)

返回

string — 结果字符串

raw_decode_string

XuAPI
pub fn raw_decode_string(s string) string

用途

raw解码字符串。

参数

s string
源字符串(string)

返回

string — 结果字符串

raw_hex_encode_to_string

XuAPI
pub fn raw_hex_encode_to_string(s string) string

用途

raw十六进制编码到字符串。

参数

s string
源字符串(string)

返回

string — 结果字符串

raw_hex_decode_string

XuAPI
pub fn raw_hex_decode_string(s string) string

用途

raw十六进制解码字符串。

参数

s string
源字符串(string)

返回

string — 结果字符串

raw_encoded_len

XuAPI
pub fn raw_encoded_len(n int) int

用途

rawencoded长度。

参数

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

返回

int — 该类型的值

raw_decoded_len

XuAPI
pub fn raw_decoded_len(n int) int

用途

rawdecoded长度。

参数

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

返回

int — 该类型的值