diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-07-31 09:56:31 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-07-31 09:56:31 -0700 |
commit | 9c788b116e9a3ba6d774f39025a0f89e77598d44 (patch) | |
tree | 391fb3deb1995429ae7184febf789b58bcbf57be /upb/pb/decoder.int.h | |
parent | ecaf82d13401bf4d8ae3fd7e099a11c94d554555 (diff) | |
parent | 7dcd017f4ed829b2ea4dd2d44165cd7ef0594057 (diff) |
Merge pull request #34 from haberman/parserskip
Changed parser semantics around skipping.
Diffstat (limited to 'upb/pb/decoder.int.h')
-rw-r--r-- | upb/pb/decoder.int.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/upb/pb/decoder.int.h b/upb/pb/decoder.int.h index 2d4485a..be5d044 100644 --- a/upb/pb/decoder.int.h +++ b/upb/pb/decoder.int.h @@ -225,6 +225,12 @@ struct upb_pbdecoder { char residual[12]; char *residual_end; + /* Bytes of data that should be discarded from the input beore we start + * parsing again. We set this when we internally determine that we can + * safely skip the next N bytes, but this region extends past the current + * user buffer. */ + size_t skip; + /* Stores the user buffer passed to our decode function. */ const char *buf_param; size_t size_param; |