NSData Questions
NSData Questions
- Subject: NSData Questions
- From: Eric Hermanson <email@hidden>
- Date: Sat, 08 Aug 2009 17:45:03 -0400
1. Is it more efficient to malloc a uint8_t array and call NSData
'init no copy', rather than pass in an array allocated with a fixed
length on the stack to the init method that makes a copy of the bytes?
2. Does NSMutableData's implementation simply just cast it's internal
bytes to const in the 'bytes' method, or does it internally copy the
bytes into a new autoreleased NSData and return the 'bytes' for that
copy, for example?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden