aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/iobuf.h')
-rw-r--r--common/iobuf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/iobuf.h b/common/iobuf.h
index c6877e0fa..a69380959 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -75,7 +75,11 @@ struct iobuf_struct
off_t nlimit;
off_t nbytes; /* Used together with nlimit. */
off_t ntotal; /* Total bytes read (position of stream). */
- int nofast; /* Used by the iobuf_get (). */
+
+ /* Whether we need to read from the filter one byte at a time or
+ whether we can do bulk reads. We need to read one byte at a time
+ if a limit (set via iobuf_set_limit) is active. */
+ int nofast;
struct
{
size_t size; /* Allocated size */