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ยง
- sizeof_
bool - Computes the binary size of the varint encoded bool (always = 1)
- sizeof_
enum - Computes the binary size of the varint encoded enum
- sizeof_
int32 - Computes the binary size of the varint encoded i32
- sizeof_
int64 - Computes the binary size of the varint encoded i64
- sizeof_
len - Computes the binary size of a variable length chunk of data (wire type 2)
- sizeof_
sint32 - Computes the binary size of the varint encoded sint32
- sizeof_
sint64 - Computes the binary size of the varint encoded sint64
- sizeof_
uint32 - Computes the binary size of the varint encoded uint32
- sizeof_
uint64 - Computes the binary size of the varint encoded uint64
- sizeof_
varint - Computes the binary size of the varint encoded u64