Skip to main content

compact_bytes_len_from_size

Function compact_bytes_len_from_size 

Source
pub fn compact_bytes_len_from_size(n: usize) -> usize
Expand description

Like compact_bytes_len but takes the byte-count directly rather than a slice. Useful when the content size is known without materialising the buffer.