summaryrefslogtreecommitdiffstats
path: root/libnetdata/circular_buffer/README.md
blob: 4482173d7fe9df272d2287404bccdd984435bae6 (plain)
1
2
3
4
5
6
7
8
9
10
<!--
title: "circular_buffer"
custom_edit_url: https://github.com/netdata/netdata/edit/master/libnetdata/circular_buffer/README.md
-->

# Circular Buffer

`struct circular_buffer` is an adaptive circular buffer. It will start at an initial size
and grow up to a maximum size as it fills. Two indices within the structure track the current
`read` and `write` position for data.