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
     1.1 --- a/src/utils.c	Fri Jul 07 17:46:00 2023 +0200
     1.2 +++ b/src/utils.c	Fri Jul 07 17:51:54 2023 +0200
     1.3 @@ -28,8 +28,13 @@
     1.4  
     1.5  #include "cx/utils.h"
     1.6  
     1.7 +#ifndef CX_STREAM_BCOPY_BUF_SIZE
     1.8  #define CX_STREAM_BCOPY_BUF_SIZE 8192
     1.9 +#endif
    1.10 +
    1.11 +#ifndef CX_STREAM_COPY_BUF_SIZE
    1.12  #define CX_STREAM_COPY_BUF_SIZE 1024
    1.13 +#endif
    1.14  
    1.15  size_t cx_stream_bncopy(
    1.16          void *src,

mercurial