Link blog: buffer, programming
- I’ve been writing ring buffers wrong all these years
- You can save one whole slot (and some code) if you just let the indices increment until they wrap (assuming unsigned ints).
(tags: programming buffer)
(tags: git programming)
(tags: vim programming c++)