# HG changeset patch # User Mike Becker # Date 1688745114 -7200 # Node ID 70885c3d15b086948f44e737f98da0d740de677e # Parent b686d0c98c62b7a22da65de42fdbdfc20394bf88 make streamcopy buffer sizes overridable diff -r b686d0c98c62 -r 70885c3d15b0 src/utils.c --- 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,