On Jun 5, 2010, at 2:00 PM, Development wrote:

> What I need to do is have a backwards copy of the data in memory that I can 
> quickly dump. The thing is I'm not entirely sure how I would go about getting 
> the data in to a new object backwards. Any ideas?

Create a new NSMutableData of the same length.
Copy the data from src.bytes to dst.mutableBytes, a byte at a time in reverse 
order. It’s a simple C for() loop.

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to