Hacker News new | ask | show | jobs
by thrtythreeforty 178 days ago
Not only that, but you can also always form a normal (ptr, size) slice reference to any piece of the ring buffer, even when it wraps. This is really helpful for Eigen arrays that you need to rotate.