diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 16:59:08 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 16:59:08 -0700 |
commit | 127adf4036baa5d6c41d59b4e2b3462b4180c2d6 (patch) | |
tree | c4ddfa465ccdbcf695ca3e9804ecf2c8f75eaa86 /upb_parse.h | |
parent | 137991c7b2def357b9f18d0cd01ba671ebf1392d (diff) |
More work on the benchmark.
Diffstat (limited to 'upb_parse.h')
-rw-r--r-- | upb_parse.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/upb_parse.h b/upb_parse.h index bbe6431..d9db85c 100644 --- a/upb_parse.h +++ b/upb_parse.h @@ -64,6 +64,7 @@ struct upb_parse_state; * been previously allocated. udata_size specifies how much space will be * available at parse_stack_frame.user_data in each frame for user data. */ void upb_parse_init(struct upb_parse_state *state, size_t udata_size); +void upb_parse_reset(struct upb_parse_state *state); void upb_parse_free(struct upb_parse_state *state); /* The callback that is called immediately after a tag has been parsed. The @@ -140,15 +141,13 @@ INLINE bool upb_check_type(upb_wire_type_t wt, upb_field_type_t ft) { /* Parses and converts a value from the character data starting at buf. The * caller must have previously checked that the wire type is appropriate for - * this field type. For delimited data, buf is advanced to the beginning of - * the delimited data, not the end. */ + * this field type. */ upb_status_t upb_parse_value(void **buf, void *end, upb_field_type_t ft, union upb_value_ptr v); /* Parses a wire value with the given type (which must have been obtained from * a tag that was just parsed) and adds the number of bytes that were consumed - * to *offset. For delimited types, offset is advanced past the delimited - * data. */ + * to *offset. */ upb_status_t upb_parse_wire_value(void **buf, void *end, upb_wire_type_t wt, union upb_wire_value *wv); |