Re: [NSMutableData resetDataRangeTo:(NSRange)range];
Re: [NSMutableData resetDataRangeTo:(NSRange)range];
- Subject: Re: [NSMutableData resetDataRangeTo:(NSRange)range];
- From: Carl Hoefs <email@hidden>
- Date: Mon, 14 Jul 2014 11:30:07 -0700
On Jul 14, 2014, at 11:22 AM, Mike Abdullah <email@hidden> wrote:
> [bigMData replaceBytesInRange:NSMakeRange(0,0)
> withBytes:newBytesPtr
> length:1024];
On Jul 14, 2014, at 11:23 AM, Ben Kennedy <email@hidden> wrote:
> [bigMData replaceBytesInRange:NSMakeRange(0,0) withBytes:newBytesPtr length:1024];
Wow, that's damn clever! My thinking is so clunky. It never would have occurred to me that NSMutableData could expand (0,0) into (0,1024) out of thin air! Awesome!
THX!!
-Carl
_______________________________________________
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