you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 9 months ago*

One cool trick that can be used with circular buffers is to use memory mapping to map the same block of memory to 2 consecutive virtual address blocks. That way you can read the entire contents of the buffer as if it was just a regular linear buffer with an offset.

  • source
  • parent