
29 May
2008
29 May
'08
7:46 p.m.
Hello Duncan, Thursday, May 29, 2008, 10:57:02 PM, you wrote:
We cannot use memcpy because it operates on raw pointers but that's no good for a movable heap object like a ByteArr#.
it's false assumption - memcpy is used for copying non-pinned arrays as in the code from Data.Array.Base i've citated. the idea is that GC shouldn't occur between getting array address and actual memcpy call. you may consult Simon Marlow -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com