From D struct to C struct

qznc qznc at web.de
Mon Nov 18 02:09:11 PST 2013


On Monday, 18 November 2013 at 08:32:11 UTC, Namespace wrote:
> I found another approach. It avoids the GC and the Heap: A 
> Circular Buffer:
> http://dpaste.dzfl.pl/cf1e7afb
>
> That should work.

It is unsafe, but might work in your specific case.

The problem is that future changes might exhibit memory 
corruption, if the limit of your buffer is too low. Would 
probably be a hell to debug.


More information about the Digitalmars-d-learn mailing list