utils_bin2hexstr

Function utils_bin2hexstr 

Source
pub fn utils_bin2hexstr(src: &[u8], final_len: i32) -> GString
Expand description

Converts the byte array @src into a hexadecimal string. If @final_len is greater than -1, the returned string is terminated at that index (returned_string[final_len] == ‘\0’),

§src

an array of bytes

§final_len

an index where to cut off the returned string, or -1

§Returns

the textual form of @bytes