Function stringutils::byte_array_to_string [] [src]

pub fn byte_array_to_string(bytes: &[u8]) -> String

Convert a byte array to a String.

Examples

let byte_array: Vec<u8> = vec!(0x0F, 0x5F, 0xAA);
let repr: String = stringutils::byte_array_to_string(&byte_array);

println!("Bytes: {}", repr);