get_tag_size() function
Return the number of bytes required to store the tag for the field. Includes 3 bits for the wire-type, and a single bit that denotes the end-of-tag.
Syntax
static inline size_t
get_tag_size(uint32_t number);
Arguments
number
Field tag to encode.
Return value
Number of bytes required.