encode

Function encode 

Source
pub fn encode<W: SerWrite>(ser: &mut W, bytes: &[u8]) -> Result<u8, W::Error>
Expand description

Encode an array of bytes as Base-64 ASCII armour codes into a SerWrite implementing object.

This function does not append Base-64 '=' padding characters by itself and instead returns the number of padding characters required: 0-2.