ne_buffer - string buffer handling
#include <ne_string.h>
typedef struct {
char *data;
size_t used;
size_t length;
} ne_buffer;
NE_BUFFER(3) neon API reference NE_BUFFER(3)
NAME
ne_buffer - string buffer handling
SYNOPSIS
#include <ne_string.h>
typedef struct {
char *data;
size_t used;
size_t length;
} ne_buffer;
DESCRIPTION
The ne_buffer type represents an expandable memory buffer for holding
NUL-terminated strings. The data field points to the beginnning of the
string, the length of which is given by the used field. The current
size of memory allocated is given by the length field. It is not
recommended that the fields of a buffer are manipulated directly. The
data pointer may change when the buffer is modified.
A buffer is created using ne_buffer_create or ne_buffer_ncreate, and
destroyed using ne_buffer_destroy or ne_buffer_finish. The functions
ne_buffer_append, ne_buffer_zappend and ne_buffer_concat are used to
append data to a buffer.
If the string referenced by the data pointer is modified directly
(rather than using one of the functions listed above),
ne_buffer_altered must be called.
AUTHOR
Joe Orton <neon@lists.manyfish.co.uk>
Author.
COPYRIGHT
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | library/neon |
+---------------+------------------+
|Stability | Volatile |
+---------------+------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://www.webdav.org/neon/neon-0.30.1.tar.gz.
Further information about this software can be found on the open source
community website at http://www.webdav.org/neon/.
neon 0.30.1 23 September 2014 NE_BUFFER(3)