Function base64::encoded_len[][src]

pub fn encoded_len(bytes_len: usize, padding: bool) -> Option<usize>
Expand description

Calculate the base64 encoded length for a given input length, optionally including any appropriate padding bytes.

Returns None if the encoded length can’t be represented in usize.