Function zbase32::decode_str
[−]
[src]
pub fn decode_str(zbase32: &str, bits: u64) -> Result<Vec<u8>, &'static str>
Decode first N bits
of given zbase32 encoded string
Panic
Panics if zbase32
decoded is shorter than N bits
.
use zbase32; assert_eq!(zbase32::decode_str("o", 1).unwrap(), &[0x80]);