Function data_encoding::decode::decode_nopad
[−]
[src]
pub fn decode_nopad<B: Base>(base: &B, input: &[u8]) -> Result<Vec<u8>, Error>
Generic decoding function with allocation (without padding).
This function is a wrapper for
decode_nopad_mut that allocates an
output of sufficient size using
decode_nopad_len. The input must not
be padded.
Correctness
The base must satisfy the Base invariants.
Failures
Decoding may fail in the circumstances defined by
Error. Padding are unexpected characters.
Panics
May panic if base does not satisfy the Base invariants.