summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorJ Wyman <jeremy.wyman@microsoft.com>2015-05-11 10:19:25 -0700
committerJ Wyman <jeremy.wyman@microsoft.com>2015-05-11 10:32:08 -0700
commit7dd2253826a027c05f5562a70f21ae396ea38c6f (patch)
tree15e800c3debb985affddeb7f9652a371559016ed /src/common.h
parent9cdd657887d5fc7cf5a5819e60900d67513ca1ff (diff)
downloadlibgit2-7dd2253826a027c05f5562a70f21ae396ea38c6f.tar.gz
centralizing all IO buffer size values
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index cdfc13657..cdb0b514d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -68,6 +68,11 @@
#include <regex.h>
+#define DEFAULT_BUFSIZE 65536
+#define FILEIO_BUFSIZE DEFAULT_BUFSIZE
+#define FILTERIO_BUFSIZE DEFAULT_BUFSIZE
+#define NETIO_BUFSIZE DEFAULT_BUFSIZE
+
/**
* Check a pointer allocation result, returning -1 if it failed.
*/