diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-07-14 23:15:00 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-07-14 23:15:00 -0700 |
commit | 6a1f3a66939308668ab8dce0d195afec16e02af9 (patch) | |
tree | 8d1236c0d7269caa1ece95bfe584afe9b550c006 /src/upb_handlers.h | |
parent | 559e23c796f973a65d05c76e211835b126ee8ac8 (diff) |
Major refactoring: upb_string is gone in favor of upb_strref.
Diffstat (limited to 'src/upb_handlers.h')
-rw-r--r-- | src/upb_handlers.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/upb_handlers.h b/src/upb_handlers.h index caf0645..1ccc59f 100644 --- a/src/upb_handlers.h +++ b/src/upb_handlers.h @@ -17,6 +17,7 @@ #include <limits.h> #include "upb.h" #include "upb_def.h" +#include "upb_bytestream.h" #ifdef __cplusplus extern "C" { @@ -303,14 +304,12 @@ typedef struct { // Members to use as the data source requires. void *srcclosure; + uint64_t end_ofs; uint16_t msgindex; uint16_t fieldindex; - uint32_t end_offset; - // Does this frame represent a sequence or a submsg (f might be both). - // We only need a single bit here, but this will make each individual - // frame grow from 32 to 40 bytes on LP64, which is a bit excessive. - bool is_sequence; + bool is_sequence; // frame represents seq or submsg? (f might be both). + bool is_packed; // !upb_issubmsg(f) && end_ofs != UINT64_MAX (strings aren't pushed) } upb_dispatcher_frame; // Called when some of the input needs to be skipped. All frames from |