Skip to main content

to_hex_upper

Function to_hex_upper 

Source
pub fn to_hex_upper(bytes: &[u8]) -> String
Expand description

Render bytes as uppercase hex, two characters per byte, no separator.

use safe_decode::to_hex_upper;
assert_eq!(to_hex_upper(&[0x00, 0xde, 0xad]), "00DEAD");