On Jul 15, 2014, at 1:45 AM, Mike Abdullah <mabdul...@karelia.com> wrote:
> 
> Another possibility is to use dispatch_data. Rather than copy bytes around to 
> assemble them into a contiguous buffer, your use case might be just as well 
> suited to dispatch_data’s approach of tying together various non-contiguous 
> buffers.
> 
Awesome! I had been wondering if this concept existed in Cocoa, didn't see it 
in the NSData docs. It's sort of like using iovec structs with readv/writev for 
sockets. I would primarily use the dispatch_data_create_map() function, right? 
Looks like it's supported in OS X 10.7+. Très cool.
-Carl


_______________________________________________

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

Reply via email to