MyClass* buffer = cast(MyClass*)GC.calloc(__traits(classInstanceSize, MyClass) * 10);
That got me thinking, how would i actually 'fill' this memory with instances of that class?
Gary Willoughby via Digitalmars-d-learn Thu, 24 Jul 2014 10:11:02 -0700
MyClass* buffer = cast(MyClass*)GC.calloc(__traits(classInstanceSize, MyClass) * 10);
That got me thinking, how would i actually 'fill' this memory with instances of that class?