• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSData Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData Questions


  • Subject: NSData Questions
  • From: Eric Hermanson <email@hidden>
  • Date: Sat, 08 Aug 2009 17:45:03 -0400


1. Is it more efficient to malloc a uint8_t array and call NSData 'init no copy', rather than pass in an array allocated with a fixed length on the stack to the init method that makes a copy of the bytes?


2. Does NSMutableData's implementation simply just cast it's internal bytes to const in the 'bytes' method, or does it internally copy the bytes into a new autoreleased NSData and return the 'bytes' for that copy, for example?

_______________________________________________

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


  • Follow-Ups:
    • Re: NSData Questions
      • From: Alastair Houghton <email@hidden>
    • Re: NSData Questions
      • From: "Sean McBride" <email@hidden>
    • Re: NSData Questions
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Universal binary with different deployment targets - how?
  • Next by Date: Re: NSArrayController access between nib files
  • Previous by thread: Re: NSArrayController access between nib files
  • Next by thread: Re: NSData Questions
  • Index(es):
    • Date
    • Thread