Re: The cost of using objects rather than plain C variables
Re: The cost of using objects rather than plain C variables
- Subject: Re: The cost of using objects rather than plain C variables
- From: Vincent Habchi <email@hidden>
- Date: Mon, 08 Jul 2013 18:30:57 +0200
On 8 juil. 2013, at 18:04, Jens Alfke <email@hidden> wrote:
> On Jul 7, 2013, at 1:37 PM, Frederick Bartram <email@hidden> wrote:
>
>> Have you tried using NSData to store C-arrays?
No, since my initial problem was to be able to extend the buffer as the number of primitive read grew. NSData would not do that. Alternatively, I could have allocated NSData as memory chunks.
> Or alternatively use NSPointerValue to wrap a pointer to a malloc’ed C array as an object.
This one I wasn’t aware of.
Vincent
_______________________________________________
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