Buffer Utility Functions.
More...
#include <glib.h>
Go to the source code of this file.
Buffer Utility Functions.
Definition in file circbuffer.h.
◆ purple_circ_buffer_append()
| void purple_circ_buffer_append |
( |
PurpleCircBuffer * |
buf, |
|
|
gconstpointer |
src, |
|
|
gsize |
len |
|
) |
| |
Append data to the PurpleCircBuffer.
This will grow the internal buffer to fit the added data, if needed.
- Parameters
-
| buf | The PurpleCircBuffer to which to append the data |
| src | pointer to the data to copy into the buffer |
| len | number of bytes to copy into the buffer |
◆ purple_circ_buffer_destroy()
Dispose of the PurpleCircBuffer and free any memory used by it (including any memory used by the internal buffer).
- Parameters
-
| buf | The PurpleCircBuffer to free |
◆ purple_circ_buffer_get_max_read()
Determine the maximum number of contiguous bytes that can be read from the PurpleCircBuffer.
Note: This may not be the total number of bytes that are buffered - a subsequent call after calling