diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 11:37:25 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 11:37:25 -0800 |
commit | f9a6f67e275dd6d379ae9428e1c40f43d8d17386 (patch) | |
tree | 143b444dd9b5c9f32771b0e910243aa5da3fc902 /src/upb_decoder.h | |
parent | 5edfe9a4c9badf0095f65c88611b107ee28dc9ad (diff) |
Track buffer end instead of buffer length, for a small perf improvement.
Diffstat (limited to 'src/upb_decoder.h')
-rw-r--r-- | src/upb_decoder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upb_decoder.h b/src/upb_decoder.h index 9cebe0c..5662c9c 100644 --- a/src/upb_decoder.h +++ b/src/upb_decoder.h @@ -62,12 +62,12 @@ struct _upb_decoder { // Our current position in the data buffer. const char *ptr; + // End of this buffer, relative to *ptr. + const char *end; + // End of this submessage, relative to *ptr. const char *submsg_end; - // Number of bytes available at ptr. - size_t len; - // Msgdef for the current level. upb_msgdef *msgdef; }; |