This is a small header-only C++ ring buffer.
Features:
- Buffer grows automatically in powers of 2
- Simple API
- Complex API that for zero-copy scenarios
- 221 lines of code
Thanks to https://fgiesen.wordpress.com/2010/12/14/ring-buffers-and-queues/ for recommendations.