willemt/cbuffer
View on GitHub ↗ ★ 274 C
A circular buffer written in C using Posix calls to create a contiguously mapped memory space. BSD Licensed.
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2016-12-14 · latest 2020-09-28
20082026
-
▲ 3
A circular buffer using a mmap() magic trick to make the caller's life easierstory by itamarst · 2020-09-28 · 0 comments
-
…on it in chunks. Here's a GitHub repo that contains an implementation of the magic ring buffer: https://github.com/willemt/cbuffer
comment by 10000truths · 2020-09-18 · in The mmap() copy-on-write trick: reducing memory usage of array copies -
…https://github.com/ulfalizer/botniklas/blob/master/src/read_... https://github.com/willemt/cbuffer
comment by hoytech · 2017-01-15 · in A Peek at GNU Radio’s Buffer Architecture -
This is another interesting ring buffer implementation that uses mmap. https://github.com/willemt/cbuffer
comment by planckscnst · 2016-12-14 · in I've been writing ring buffers wrong all these years