pub const fn decode_raw_len(src_len: usize) -> usizeExpand description
Returns the decoded output length for unpadded input.
Given the number of base32 characters (no padding), calculates how many bytes will result from decoding.
§Arguments
src_len- Number of unpadded encoded characters
§Returns
Number of decoded bytes
§Example
use omp_core::base32;
// Encoding 5 bytes without padding produces chars; decoding yields 5 bytes
let data = [0u8; 5];
let encoded = base32::encode_raw(&data).into_vec();
assert_eq!(base32::decode_raw_len(encoded.len()), 5);