liblcthw icon indicating copy to clipboard operation
liblcthw copied to clipboard

RingBuffer isn't really a ring buffer

Open tom-huntington opened this issue 5 years ago • 1 comments

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.

tom-huntington avatar Sep 15 '19 23:09 tom-huntington

I should have checked here hours ago - I thought I was crazy or that there was some memcpy magic i didn't understand.

rreagan3 avatar Jun 18 '22 18:06 rreagan3