summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stream/stream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 423ba12..58b55e1 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -32,6 +32,9 @@
// it's guaranteed that you can seek back by <= of this size again.
#define STREAM_BUFFER_SIZE 2048
+// Maximum size of a complete read.
+#define STREAM_MAX_READ_SIZE (INT_MAX - 1)
+
// flags for stream_open_ext (this includes STREAM_READ and STREAM_WRITE)
// stream->mode