59 * @param n the maximum number of bytes that shall be copied. |
59 * @param n the maximum number of bytes that shall be copied. |
60 * If this is larger than \p bufsize, the content is copied over multiple |
60 * If this is larger than \p bufsize, the content is copied over multiple |
61 * iterations. |
61 * iterations. |
62 * @return the total number of bytes copied |
62 * @return the total number of bytes copied |
63 */ |
63 */ |
64 __attribute__((__nonnull__(1, 2, 3, 4))) |
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) |
65 size_t cx_stream_bncopy( |
68 size_t cx_stream_bncopy( |
66 void *src, |
69 void *src, |
67 void *dest, |
70 void *dest, |
68 cx_read_func rfnc, |
71 cx_read_func rfnc, |
69 cx_write_func wfnc, |
72 cx_write_func wfnc, |
98 * @param rfnc the read function |
101 * @param rfnc the read function |
99 * @param wfnc the write function |
102 * @param wfnc the write function |
100 * @param n the maximum number of bytes that shall be copied. |
103 * @param n the maximum number of bytes that shall be copied. |
101 * @return total number of bytes copied |
104 * @return total number of bytes copied |
102 */ |
105 */ |
103 __attribute__((__nonnull__)) |
106 cx_attr_nonnull |
|
107 cx_attr_access_r(1) |
|
108 cx_attr_access_w(2) |
104 size_t cx_stream_ncopy( |
109 size_t cx_stream_ncopy( |
105 void *src, |
110 void *src, |
106 void *dest, |
111 void *dest, |
107 cx_read_func rfnc, |
112 cx_read_func rfnc, |
108 cx_write_func wfnc, |
113 cx_write_func wfnc, |