#Is there a ring buffer in standard library (0.15.1)?
1 messages · Page 1 of 1 (latest)
https://ziglang.org/download/0.15.1/release-notes.html#Ring-Buffers
The standard library is working tirelessly to remove them.
See https://github.com/ziglang/zig/pull/24968
It's not in 0.15.1, but you can copy the code for now. Or migrate to zig master.
Or use Reader/Writer interfaces as ring buffers, like the PR suggests.