#include <glib.h>
Include dependency graph for circbuffer.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | _PurpleCircBuffer |
Typedefs | |
typedef _PurpleCircBuffer | PurpleCircBuffer |
Functions | |
PurpleCircBuffer * | purple_circ_buffer_new (gsize growsize) |
Creates a new circular buffer. | |
void | purple_circ_buffer_destroy (PurpleCircBuffer *buf) |
Dispose of the PurpleCircBuffer and free any memory used by it (including any memory used by the internal buffer). | |
void | purple_circ_buffer_append (PurpleCircBuffer *buf, gconstpointer src, gsize len) |
Append data to the PurpleCircBuffer. | |
gsize | purple_circ_buffer_get_max_read (const PurpleCircBuffer *buf) |
Determine the maximum number of contiguous bytes that can be read from the PurpleCircBuffer. | |
gboolean | purple_circ_buffer_mark_read (PurpleCircBuffer *buf, gsize len) |
Mark the number of bytes that have been read from the buffer. |
Definition in file circbuffer.h.
|
Append data to the PurpleCircBuffer. This will grow the internal buffer to fit the added data, if needed.
|
|
Dispose of the PurpleCircBuffer and free any memory used by it (including any memory used by the internal buffer).
|
|
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 purple_circ_buffer_mark_read() may indicate more data is available to read.
|
|
Mark the number of bytes that have been read from the buffer.
|
|
Creates a new circular buffer. This will not allocate any memory for the actual buffer until data is appended to it.
|