Declaration [src]

purple_circular_buffer_new (
  gsize growsize

Description [src]

Creates a new circular buffer. This will not allocate any memory for the actual buffer until data is appended to it.


growsize gsize

The amount that the buffer should grow the first time data is appended and every time more space is needed. Pass in “0” to use the default of 256 bytes.

Return value

Returns: PurpleCircularBuffer

The new PurpleCircularBuffer.

 The caller of the function takes ownership of the data, and is responsible for freeing it.