1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef UCX_STREAMS_H
40 #define UCX_STREAMS_H
41
42 #include "common.h"
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64 cx_attr_nonnull_arg(
1,
2,
3,
4)
65 cx_attr_access_r(
1) cx_attr_access_w(
2) cx_attr_access_w(
5)
66 CX_EXPORT size_t cx_stream_bncopy(
void *src,
void *dest,
67 cx_read_func rfnc, cx_write_func wfnc,
68 char *buf,
size_t bufsize,
size_t n);
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83 #define cx_stream_bcopy(src, dest, rfnc, wfnc, buf, bufsize) \
84 cx_stream_bncopy(src, dest, rfnc, wfnc, buf, bufsize,
SIZE_MAX)
85
86
87
88
89
90
91
92
93
94
95
96
97
98 cx_attr_nonnull cx_attr_access_r(
1) cx_attr_access_w(
2)
99 CX_EXPORT size_t cx_stream_ncopy(
void *src,
void *dest,
100 cx_read_func rfnc, cx_write_func wfnc,
size_t n);
101
102
103
104
105
106
107
108
109
110
111
112
113 #define cx_stream_copy(src, dest, rfnc, wfnc) \
114 cx_stream_ncopy(src, dest, rfnc, wfnc,
SIZE_MAX)
115
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif
121