[][src]Function base32h::encode_binary_to_string

pub fn encode_binary_to_string(data: &[u8]) -> String

Returns a base32h encoded string representation of the inputted u8 slice

Arguments

  • data - u8 slice to encode

Examples

use base32h::{encode_binary_to_string};
assert_eq!(encode_binary_to_string(&[255, 255, 255, 255, 255, 255]), "0000007ZZZZZZZZZ".to_owned());