Skip to main content

hex_decode

Function hex_decode 

Source
pub fn hex_decode(value: &str) -> Option<Vec<u8>>
Expand description

Decode a whole even-length hexadecimal string. 解码完整偶数长度的十六进制字符串。

Returns None for odd lengths or any non-hex digit. 长度为奇数或含有非十六进制字符时返回 None。