Module quick_protobuf::sizeofs

source ·
Expand description

A module to compute the binary size of data once encoded

This module is used primilarly when implementing the MessageWrite::get_size

Functions

Computes the binary size of the varint encoded bool (always = 1)
Computes the binary size of the varint encoded enum
Computes the binary size of the varint encoded i32
Computes the binary size of the varint encoded i64
Computes the binary size of a variable length chunk of data (wire type 2)
Computes the binary size of the varint encoded sint32
Computes the binary size of the varint encoded sint64
Computes the binary size of the varint encoded uint32
Computes the binary size of the varint encoded uint64
Computes the binary size of the varint encoded u64