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)
66 cx_attr_access_w(
2)
67 cx_attr_access_w(
5)
68 size_t cx_stream_bncopy(
69 void *src,
70 void *dest,
71 cx_read_func rfnc,
72 cx_write_func wfnc,
73 char *buf,
74 size_t bufsize,
75 size_t n
76 );
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91 #define cx_stream_bcopy(src, dest, rfnc, wfnc, buf, bufsize) \
92 cx_stream_bncopy(src, dest, rfnc, wfnc, buf, bufsize,
SIZE_MAX)
93
94
95
96
97
98
99
100
101
102
103
104
105
106 cx_attr_nonnull
107 cx_attr_access_r(
1)
108 cx_attr_access_w(
2)
109 size_t cx_stream_ncopy(
110 void *src,
111 void *dest,
112 cx_read_func rfnc,
113 cx_write_func wfnc,
114 size_t n
115 );
116
117
118
119
120
121
122
123
124
125
126
127
128 #define cx_stream_copy(src, dest, rfnc, wfnc) \
129 cx_stream_ncopy(src, dest, rfnc, wfnc,
SIZE_MAX)
130
131 #ifdef __cplusplus
132 }
133 #endif
134
135 #endif
136