[][src]Function base_encode::encode

pub fn encode(buf: &[u8], base: u16) -> Vec<u8>

Encodes a u8 slice to any base.

The base must be at least 2 and lower or equal than 256.

The return value contains the digits in the specified base.