Function data_encoding::encode::encode_nopad_mut
[−]
[src]
pub fn encode_nopad_mut<B: Base>(base: &B, input: &[u8], output: &mut [u8])
Generic encoding function without allocation (without padding).
This function takes a base implementation, a shared input slice, a mutable output slice, and encodes the input slice to the output slice. The output is not padded.
Correctness
The base must satisfy the Base
invariants.
Panics
Panics if output.len() != encode_nopad_len(input.len())
. May
also panic if base
does not satisfy the Base
invariants.