From 2d21601d477dfc242d31acabdad119a56d2b7945 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 29 Jun 2009 17:54:50 -0700 Subject: Reworked low-level parsing: smaller, safer. --- upb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'upb.h') diff --git a/upb.h b/upb.h index 2e62b5a..3281a0e 100644 --- a/upb.h +++ b/upb.h @@ -110,6 +110,9 @@ union upb_symbol_ref { typedef enum upb_status { UPB_STATUS_OK = 0, + // The input byte stream ended in the middle of a record. + UPB_STATUS_NEED_MORE_DATA = 1, + // A varint did not terminate before hitting 64 bits. UPB_ERROR_UNTERMINATED_VARINT = -1, -- cgit v1.2.3