Generic type-safe ring buffer
What would be the preferred C way of implementing a simple generic ring-buffer.
Which approach from the 2 below (or even some 3rd) would you use and why?
Specifically, this will be part of an embedded automotive application. I am looking for an approach that is the easiest to understand and maintain. Performance is not a deciding factor.
Generic type-safe ring buffer
What would be the preferred C way of implementing a simple generic ring-buffer.
Which approach from the 2 below (or even some 3rd) would you use and why?
Specifically, this will be part of an embedded automotive application. I am looking for an approach that is the easiest to understand and maintain. Performance is not a deciding factor.
Generic type-safe ring buffer
What would be the preferred C way of implementing a simple generic ring-buffer.
Which approach from the 2 below (or even some 3rd) would you use and why?
Specifically, this will be part of an embedded automotive application. I am looking for an approach that is the easiest to understand and maintain. Performance is not a deciding factor.