Skip to main content

string_encoded_len

Function string_encoded_len 

Source
pub fn string_encoded_len(value: &str) -> usize
Expand description

Compute the encoded byte count of a string value (varint length prefix + UTF-8 byte count), excluding the field tag.