summaryrefslogtreecommitdiff
path: root/upb/pb
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-07-17 21:54:38 +0200
committerJoshua Haberman <jhaberman@gmail.com>2017-07-17 21:55:58 +0200
commitbe9094d91a2da777002a0f713306ac1bb74a6ac5 (patch)
tree431430e1e82092bbe95216a83e672761ab4d4613 /upb/pb
parent4da95f621330608f6dbd166cd376052c5deb6f02 (diff)
New encode/decode: most (171 / 192) conformance tests pass.
Diffstat (limited to 'upb/pb')
-rw-r--r--upb/pb/varint.int.h14
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback