liblcthw
liblcthw copied to clipboard
RingBuffer isn't really a ring buffer
A ring buffer should write around the "edge" of the buffer. Zed's RingBuffer merely resets once it is empty.
Consider renaming to FancyBuffer or AdvancedBuffer, or change the implementation to write around the edge.
I should have checked here hours ago - I thought I was crazy or that there was some memcpy magic i didn't understand.