Skip to main content

encode_raw_mut

Function encode_raw_mut 

Source
pub const fn encode_raw_mut(src: &[u8], dst: &mut [u8]) -> usize
Expand description

Encodes bytes into a mutable buffer without padding.

§Arguments

  • src - The byte slice to encode
  • dst - 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_raw_mut(b"hello", &mut buf);