From edd1f5a61f3323992072fb71b6088f7ec485ff7d Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 11 Jun 2010 12:12:39 -0700 Subject: Work on decoder buffering. --- src/upb_srcsink.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/upb_srcsink.h') diff --git a/src/upb_srcsink.h b/src/upb_srcsink.h index 8e5a09d..199149d 100644 --- a/src/upb_srcsink.h +++ b/src/upb_srcsink.h @@ -26,6 +26,11 @@ extern "C" { #endif +// Note! The "eof" flags work like feof() in C; they cannot report end-of-file +// until a read has failed due to eof. They cannot preemptively tell you that +// the next call will fail due to eof. Since these are the semantics that C +// and UNIX provide, we're stuck with them if we want to support eg. stdio. + /* upb_src ********************************************************************/ // TODO: decide how to handle unknown fields. -- cgit v1.2.3