summaryrefslogtreecommitdiff
path: root/src/upb_srcsink.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-06-11 12:12:39 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-06-11 12:12:39 -0700
commitedd1f5a61f3323992072fb71b6088f7ec485ff7d (patch)
tree68991dc3284f7723b507fe83195698de3b61e920 /src/upb_srcsink.h
parentd7e631d9b05e19662802ac8f0727adff0a2d9f98 (diff)
Work on decoder buffering.
Diffstat (limited to 'src/upb_srcsink.h')
-rw-r--r--src/upb_srcsink.h5
1 files changed, 5 insertions, 0 deletions
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.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback