memmove C++ -> D

Clay Smith clayasaurus at gmail.com
Sun Nov 25 09:22:50 PST 2007


C++ memmove:

memmove(bounds + upperIndex + 2, bounds + upperIndex, (edgeCount - 
upperIndex) * sizeof(b2Bound));

D memmove:

memmove(bounds.ptr + upperIndex + 2, bounds.ptr + upperIndex, (edgeCount 
- upperIndex) * b2Bound.sizeof);

Is this a correct translation to D? Thanks.

~ Clay


More information about the Digitalmars-d-learn mailing list