Definition in file dt_buf.c.
Go to the source code of this file.
Functions | |
| dt_bool | dt_buf_init (dt_buf *buf) |
| Initialize the buffer. | |
| dt_bool | dt_buf_init_data (dt_buf *buf, dt_byte const *data, size_t len) |
| Initialize a buffer and store specified data into it. | |
| void | dt_buf_free (dt_buf *buf) |
| Frees the memory associated with the buffer. | |
| void | dt_buf_clear (dt_buf *buf) |
| Makes the buffer empty without releasing its memory. | |
| dt_bool | dt_buf_append (dt_buf *buf, int c) |
| Appends a single byte of value c to the end of the buffer. | |
| dt_bool | dt_buf_growth_reserve (dt_buf *buf, unsigned len) |
| dt_bool | dt_buf_append_data (dt_buf *buf, void const *data, unsigned len) |
Variables | |
| unsigned | dt_buf_instance_count = 0 |
| The number of dt_buf instances that currently exist. A debugging facility. | |
|
||||||||||||
|
Appends a single byte of value c to the end of the buffer.
|
|
||||||||||||||||
|
|
|
|
Makes the buffer empty without releasing its memory.
|
|
|
Frees the memory associated with the buffer. Must balance every call to dt_buf_init. |
|
||||||||||||
|
|
|
|
Initialize the buffer.
|
|
||||||||||||||||
|
Initialize a buffer and store specified data into it.
|
|
|
The number of dt_buf instances that currently exist. A debugging facility.
|
1.3.1