Function ser_write_json::base64::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.