make streamcopy buffer sizes overridable

Fri, 07 Jul 2023 17:51:54 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 07 Jul 2023 17:51:54 +0200
changeset 736
70885c3d15b0
parent 735
b686d0c98c62
child 737
b3b113eac3b8

make streamcopy buffer sizes overridable

src/utils.c file | annotate | diff | comparison | revisions
--- a/src/utils.c	Fri Jul 07 17:46:00 2023 +0200
+++ b/src/utils.c	Fri Jul 07 17:51:54 2023 +0200
@@ -28,8 +28,13 @@
 
 #include "cx/utils.h"
 
+#ifndef CX_STREAM_BCOPY_BUF_SIZE
 #define CX_STREAM_BCOPY_BUF_SIZE 8192
+#endif
+
+#ifndef CX_STREAM_COPY_BUF_SIZE
 #define CX_STREAM_COPY_BUF_SIZE 1024
+#endif
 
 size_t cx_stream_bncopy(
         void *src,

mercurial