1NE_BUFFER_CLEAR(3) neon API reference NE_BUFFER_CLEAR(3)
2
3
4
6 ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - clear, grow, or
7 mark as altered a string buffer
8
10 #include <ne_string.h>
11
12 void ne_buffer_clear(ne_buffer *buf);
13
14 void ne_buffer_altered(ne_buffer *buf);
15
16 void ne_buffer_grow(ne_buffer *buf, size_t size);
17
19 The ne_buffer_clear function sets the string stored in buf to be the
20 empty string ("").
21
22 The ne_buffer_altered function must be used after the string stored in
23 the buffer buf is modified by directly rather than using
24 ne_buffer_append, ne_buffer_zappend or ne_buffer_concat.
25
26 The ne_buffer_grow function ensures that at least size bytes are
27 allocated for the string; this can be used if a large amount of data is
28 going to be appended to the buffer and may result in more efficient
29 memory allocation.
30
32 Joe Orton <neon@lists.manyfish.co.uk>
33 Author.
34
36neon 0.29.5 14 October 2010 NE_BUFFER_CLEAR(3)