Cocoa - does CGDataProviderCopyData() actually copy the bytes? Or just the pointer?

Posted by jtrim on Stack Overflow See other posts from Stack Overflow or by jtrim
Published on 2010-04-30T13:01:56Z Indexed on 2010/04/30 13:07 UTC
Read the original article Hit count: 272

I'm running that method in quick succession as fast as I can, and the faster the better, so obviously if CGDataProviderCopyData() is actually copying the data byte-for-byte, then I think there must be a faster way to directly access that data...it's just bytes in memory. Anyone know for sure if CGDataProviderCopyData() actually copies the data? Or does it just create a new pointer to the existing data?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about Performance