diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2017-07-19 01:08:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 01:08:54 +0200 |
commit | ae30b4a816a57a8101ce187245edc3050d515c06 (patch) | |
tree | f90b48f78f28071a6514a8f766bb6570ae35f5f1 /upb/pb | |
parent | d5167fff744167eca45df65b5b935525778e2886 (diff) | |
parent | 72c333eb037da6fe63358efe9c6dc29547b0ab49 (diff) |
Merge pull request #90 from haberman/gencode3
Added new encoder/decoder that operates on upb_msglayout.
Diffstat (limited to 'upb/pb')
-rw-r--r-- | upb/pb/varint.int.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/upb/pb/varint.int.h b/upb/pb/varint.int.h index 3ef84fb..9c54311 100644 --- a/upb/pb/varint.int.h +++ b/upb/pb/varint.int.h @@ -15,21 +15,9 @@ extern "C" { #endif -/* A list of types as they are encoded on-the-wire. */ -typedef enum { - UPB_WIRE_TYPE_VARINT = 0, - UPB_WIRE_TYPE_64BIT = 1, - UPB_WIRE_TYPE_DELIMITED = 2, - UPB_WIRE_TYPE_START_GROUP = 3, - UPB_WIRE_TYPE_END_GROUP = 4, - UPB_WIRE_TYPE_32BIT = 5 -} upb_wiretype_t; - #define UPB_MAX_WIRE_TYPE 5 -/* The maximum number of bytes that it takes to encode a 64-bit varint. - * Note that with a better encoding this could be 9 (TODO: write up a - * wiki document about this). */ +/* The maximum number of bytes that it takes to encode a 64-bit varint. */ #define UPB_PB_VARINT_MAX_LEN 10 /* Array of the "native" (ie. non-packed-repeated) wire type for the given a |