Re: Deleting data from NSMutableData
Re: Deleting data from NSMutableData
- Subject: Re: Deleting data from NSMutableData
- From: "R. Tyler Ballance" <email@hidden>
- Date: Tue, 20 Mar 2007 23:04:21 -0500
On Mar 20, 2007, at 10:51 PM, Jim Correia wrote:
On Mar 20, 2007, at 11:36 PM, R. Tyler Ballance wrote:
Howdy, I'm trying to figure out an effective means of removing X
number of bytes from an NSMutableData. Basically, I iterate
through an NSMutableData and systematically trim pieces out as
they are handled.
There doesn't appear to be any simple means of doing so
Which of the "Modifying data" methods on NSMutableData did you
consider and reject?
All of them? :-P
I had thought about seeing what I could crash with using
replaceBytesInRange:withBytes:length: and passing it a NULL, but that
seems hackish and unstable at best.
There's not exactly a removeBytesInRange: method however
Cheers
R. Tyler Ballance: Lead Mac Developer at bleep. software
contact: email@hidden | jabber: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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