From f9a6f67e275dd6d379ae9428e1c40f43d8d17386 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 17 Feb 2011 11:37:25 -0800 Subject: Track buffer end instead of buffer length, for a small perf improvement. --- src/upb_decoder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/upb_decoder.h') 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; }; -- cgit v1.2.3