e_utils::algorithm::base64

Function add_padding

Source
pub fn add_padding(input_len: usize, output: &mut [u8]) -> usize
Expand description

Write padding characters. output is the slice where padding should be written, of length at least 2.

Returns the number of padding bytes written.