pub const fn encode_mut(src: &[u8], dst: &mut [u8]) -> usizeExpand description
Encodes bytes into a mutable buffer with padding.
§Arguments
src- The byte slice to encodedst- The mutable buffer to write encoded characters to
§Returns
The number of characters written to dst.
§Example
use omp_core::base32_hex;
let mut buf = [0u8; 16];
let n = base32_hex::encode_mut(b"hello", &mut buf);