Function prost::length_delimiter_len
source · [−]pub fn length_delimiter_len(length: usize) -> usize
Expand description
Returns the encoded length of a length delimiter.
Applications may use this method to ensure sufficient buffer capacity before calling
encode_length_delimiter
. The returned size will be between 1 and 10, inclusive.