On May 23, 2012, at 8:26 AM, Andreas Grosam wrote: > Is there an easy way to figure out the capacity of a NSMutableData object - > that is the number of bytes that can be written to the data object without > causing it to reallocate the internal buffer or invalidating the base pointer > to the internal buffer?
I don't think so. You should always assume that any call to -setLength: will invalidate the -bytes/-mutableBytes pointer. —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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com