> On Feb 27, 2017, at 10:02 AM, Chris Ridd <chrisr...@mac.com> wrote: > > It isn’t NSData, but libdispatch’s dispatch_data_t might be a useful way > forward. The dispatch_data_create(3) man page says it avoids "copying the > represented memory as much as possible.”
There’s some kind of bridging between the two — in the debugger I’ve seen NSData objects (passed to my NSURLSession delegates) that have some internal subclass name implying they’re bridged dispatch_data_t’s. (I don’t know if this is toll-free or not, but it would be easy to do an experiment.) —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