93 * @param rfnc the read function |
93 * @param rfnc the read function |
94 * @param wfnc the write function |
94 * @param wfnc the write function |
95 * @return total number of bytes copied |
95 * @return total number of bytes copied |
96 */ |
96 */ |
97 #define ucx_stream_hcopy(src,dest,rfnc,wfnc) ucx_stream_copy(\ |
97 #define ucx_stream_hcopy(src,dest,rfnc,wfnc) ucx_stream_copy(\ |
98 src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, SIZE_MAX) |
98 src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, (size_t)-1) |
99 |
99 |
100 /** |
100 /** |
101 * Shorthand for ucx_stream_copy using the default copy buffer and a copy limit. |
101 * Shorthand for ucx_stream_copy using the default copy buffer and a copy limit. |
102 * |
102 * |
103 * @param src the source stream |
103 * @param src the source stream |