Function quick_protobuf::sizeofs::sizeof_len

source ยท
pub fn sizeof_len(len: usize) -> usize
Expand description

Computes the binary size of a variable length chunk of data (wire type 2)

The total size is the varint encoded length size plus the length itself https://developers.google.com/protocol-buffers/docs/encoding