• 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
Re: writing huge C-array to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing huge C-array to a file


  • Subject: Re: writing huge C-array to a file
  • From: j o a r <email@hidden>
  • Date: Fri, 15 Sep 2006 21:32:03 +0200


On 15 sep 2006, at 21.23, Greg Hoover wrote:

Is there a way to retain data from an NSData object such that when it is deallocated, it's data memory is not?

Yes, use the "-initWithBytesNoCopy:length:freeWhenDone:" initializer, and pass NO for the last parameter.


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: writing huge C-array to a file (From: Greg Hoover <email@hidden>)

  • Prev by Date: Re: writing huge C-array to a file
  • Next by Date: Re: writing huge C-array to a file
  • Previous by thread: Re: writing huge C-array to a file
  • Next by thread: Re: writing huge C-array to a file
  • Index(es):
    • Date
    • Thread