[−][src]Function enc::hex::encoded_length
pub fn encoded_length(data: &[u8]) -> usize
Gets the length of the encoded data.
Panics
This function will panic if the length of the encoded data overflows usize.
use enc::hex::encoded_length; assert_eq!(encoded_length(&[0u8; 0]), 0); assert_eq!(encoded_length(&[0u8, 1u8]), 4);