gchar * outptr
A pointer to the next byte of buffered data that should be read by the consumer.
void purple_circ_buffer_destroy(PurpleCircBuffer *buf)
Dispose of the PurpleCircBuffer and free any memory used by it (including any memory used by the inte...
gsize growsize
The incremental amount to increase this buffer by when the buffer is not big enough to hold incoming ...
gsize purple_circ_buffer_get_max_read(const PurpleCircBuffer *buf)
Determine the maximum number of contiguous bytes that can be read from the PurpleCircBuffer.
gsize buflen
The length of this buffer, in bytes.
gchar * inptr
A pointer to the next byte where new incoming data is buffered to.
gboolean purple_circ_buffer_mark_read(PurpleCircBuffer *buf, gsize len)
Mark the number of bytes that have been read from the buffer.
gchar * buffer
A pointer to the starting address of our chunk of memory.
gsize bufused
The number of bytes of this buffer that contain unread data.
PurpleCircBuffer * purple_circ_buffer_new(gsize growsize)
Creates a new circular buffer.
void purple_circ_buffer_append(PurpleCircBuffer *buf, gconstpointer src, gsize len)
Append data to the PurpleCircBuffer.