diff options
author | Bo Yang <teboring@google.com> | 2018-03-06 23:59:58 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-03-07 00:12:28 +0000 |
commit | cafebf6beede670a10535809667ac9b9f3033091 (patch) | |
tree | be9f5460fa96e5e8690f5230a779d64c74e6abd8 /upb/def.h | |
parent | bcb62b7fbfb0c959f7d3671b40c1b7efbb3a4156 (diff) |
For encoding upb needs descriptor type instead of type.
Diffstat (limited to 'upb/def.h')
-rw-r--r-- | upb/def.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -279,6 +279,9 @@ typedef enum { UPB_SYNTAX_PROTO3 = 3 } upb_syntax_t; +/* Maps descriptor type -> upb field type. */ +extern const uint8_t upb_desctype_to_fieldtype[]; + /* Maximum field number allowed for FieldDefs. This is an inherent limit of the * protobuf wire format. */ #define UPB_MAX_FIELDNUMBER ((1 << 29) - 1) |