Circular Buffer

ponce contact at gam3sfrommars.fr
Sat Dec 21 00:22:40 PST 2013


On Friday, 20 December 2013 at 15:45:04 UTC, Frustrated wrote:
> I'm in need of a circular buffer/array. I am using 
> std.container.array to avoid the GC. I suppose I could copy and 
> modify the code but is there any easier way? It looks like it 
> is defined as templates so could I somehow hijack the code and 
> modify only what is needed rather than duplicate a lot of 
> stuff? (or maybe someone could just add it to the library... 
> circular arrays are useful ya know ;)

http://p0nce.github.io/gfm/gfm.core.queue.html#RingBuffer < and 
use malloc instead of .length


More information about the Digitalmars-d-learn mailing list