Function bao::encode::encoded_size

source ·
pub fn encoded_size(content_len: u64) -> u128
Expand description

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.