diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-08-27 18:44:37 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-08-27 18:44:37 -0700 |
commit | 48fedab345674000dd2f8dd4d8356ee995d9263e (patch) | |
tree | ba5faf3637e6963d45168f1e532ac3c9734569c0 /upb/pb/decoder.h | |
parent | c03802b0f18a1a654f832ddff01a5bd78efbc4d6 (diff) |
Add packed field support (untested).
Diffstat (limited to 'upb/pb/decoder.h')
-rw-r--r-- | upb/pb/decoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/pb/decoder.h b/upb/pb/decoder.h index 9a20d76..921697a 100644 --- a/upb/pb/decoder.h +++ b/upb/pb/decoder.h @@ -52,6 +52,7 @@ typedef struct _upb_decoder { // End of the delimited region, relative to ptr, or NULL if not in this buf. const char *delim_end; + bool top_is_packed; #ifdef UPB_USE_JIT_X64 // For JIT, which doesn't do bounds checks in the middle of parsing a field. @@ -70,7 +71,7 @@ typedef struct _upb_decoder { // Used for frames that have no specific end offset: groups, repeated primitive // fields inside groups, and the top-level message. -#define UPB_NONDELIMITED UINT32_MAX +#define UPB_NONDELIMITED UINT64_MAX // Initializes/uninitializes a decoder for calling into the given handlers // or to write into the given msgdef, given its accessors). Takes a ref |