Constructor
PurpleCircularBuffernew
unstable since: 3.0
Declaration [src]
PurpleCircularBuffer*
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.
Available since: 3.0
Parameters
growsize
-
Type:
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
Type: PurpleCircularBuffer
The new PurpleCircularBuffer.
The caller of the function takes ownership of the data, and is responsible for freeing it. |