encode_to_string
XuAPI
pub fn encode_to_string(s string) stringPurpose
Encode to a string.
Parameters
sstring- source string (string)
Returns
string — result string
API
#encoding/base32Std/Hex plus Raw variants.
encode_to_stringpub fn encode_to_string(s string) stringEncode to a string.
s stringstring — result string
decode_stringpub fn decode_string(s string) stringDecode from a string.
s stringstring — result string
encoded_lenpub fn encoded_len(n int) intEncoded len.
n intint — a value of this type
decoded_lenpub fn decoded_len(n int) intDecoded len.
n intint — a value of this type
hex_encode_to_stringpub fn hex_encode_to_string(s string) stringHex encode to string.
s stringstring — result string
hex_decode_stringpub fn hex_decode_string(s string) stringHex decode string.
s stringstring — result string
hex_encoded_lenpub fn hex_encoded_len(n int) intHex encoded len.
n intint — a value of this type
hex_decoded_lenpub fn hex_decoded_len(n int) intHex decoded len.
n intint — a value of this type
raw_encode_to_stringpub fn raw_encode_to_string(s string) stringRaw encode to string.
s stringstring — result string
raw_decode_stringpub fn raw_decode_string(s string) stringRaw decode string.
s stringstring — result string
raw_hex_encode_to_stringpub fn raw_hex_encode_to_string(s string) stringRaw hex encode to string.
s stringstring — result string
raw_hex_decode_stringpub fn raw_hex_decode_string(s string) stringRaw hex decode string.
s stringstring — result string
raw_encoded_lenpub fn raw_encoded_len(n int) intEncoding.EncodedLen with NoPadding.
n intint — a value of this type
raw_decoded_lenpub fn raw_decoded_len(n int) intEncoding.DecodedLen with NoPadding.
n intint — a value of this type