Function bao::encode::encoded_size[][src]

pub fn encoded_size(content_len: u64) -> u128

Compute the size of a combined encoding, given the size of the input. Note that for input sizes close to u64::MAX, the result can overflow a u64.