[][src]Function base32h::encode_to_string

pub fn encode_to_string(data: u64) -> Option<String>

Returns a base32h encoded string representation of the inputted number Return None if input is greater than 1,099,511,627,775

Arguments

  • data - u64 data to encode

Examples

use base32h::{encode_to_string};
assert_eq!(encode_to_string(1099511627775).unwrap(), "ZZZZZZZZ".to_owned());