Re: NSMutableData and Pinned Memory buffers..
Re: NSMutableData and Pinned Memory buffers..
- Subject: Re: NSMutableData and Pinned Memory buffers..
- From: Greg Parker <email@hidden>
- Date: Thu, 13 Dec 2012 16:24:44 -0800
On Dec 13, 2012, at 4:13 PM, Robert Monaghan <email@hidden> wrote:
> I went ahead and created a really crude subclass of NSMutableData. It seems to work for my situation.
> Attached is the code, for posterity. (I am sure I won't be the only one working around this.)
>
> Any suggestions to make this a bit more "Proper" are welcome.
If that's all you need then you should wrap the buffer in an immutable NSData. NSData won't mind if you poke directly at the contents of the buffer.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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