Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

7 lines
199 B

  1. #include "fmt.h"
  2. size_t fmt_pb_tag(char* dest,size_t fieldno,unsigned char type) {
  3. if (type>5 || (fieldno >> (sizeof(fieldno)*8-3))) return 0;
  4. return fmt_varint(dest,(type&7) | (fieldno<<3));
  5. }