videolib.buffer.CircularBuffer¶
- class CircularBuffer(buf_size)[source]¶
Bases:
objectClass defining a circular buffer.
- Parameters:
buf_size (
int) – Size of the buffer
Methods
Append copy of item into circular buffer.
Get top element of circular buffer.
Get center element of circular buffer.
If buffer is empty, fill.
Clear circular buffer.
Clear buffer and fill with shallow copies of item.
Get top element of circular buffer.
Check if buffer is empty.