Function quick_protobuf::sizeofs::sizeof_len[][src]

pub fn sizeof_len(len: usize) -> usize

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