summaryrefslogtreecommitdiff
path: root/src/upb_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_decoder.h')
-rw-r--r--src/upb_decoder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/upb_decoder.h b/src/upb_decoder.h
index 1c62753..9cebe0c 100644
--- a/src/upb_decoder.h
+++ b/src/upb_decoder.h
@@ -58,6 +58,18 @@ struct _upb_decoder {
// The offset within the overall stream represented by the *beginning* of buf.
size_t buf_stream_offset;
+
+ // Our current position in the data buffer.
+ const char *ptr;
+
+ // 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;
};
// A upb_decoder decodes the binary protocol buffer format, writing the data it
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback