1NE_BUFFER_CLEAR(3) neon API reference NE_BUFFER_CLEAR(3)
2
3
4
6 ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - general purpose of
7 group of functions
8
10 #include <ne_string.h>
11
12
13 void ne_buffer_clear (ne_buffer *buf);
14
15 void ne_buffer_altered (ne_buffer *buf);
16
17 void ne_buffer_grow (ne_buffer *buf, size_t size);
18
19
21 The ne_buffer_clear function sets the string stored in buf to be the
22 empty string ("").
23
24
25 The ne_buffer_altered function must be used after the string stored in
26 the buffer buf is modified by directly rather than using ne_buffer_ap‐
27 pend(3), ne_buffer_zappend(3) or ne_buffer_concat(3).
28
29
30 The ne_buffer_grow function ensures that at least size bytes are allo‐
31 cated for the string; this can be used if a large amount of data is go‐
32 ing to be appended to the buffer and may result in more efficient memo‐
33 ry allocation.
34
35
37 Joe Orton <neon@webdav.org>.
38
39
40
41neon 0.25.5 20 January 2006 NE_BUFFER_CLEAR(3)