• 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: "R. Matthew Emerson" <email@hidden>
  • Date: Fri, 15 Sep 2006 15:34:35 -0400


On Sep 15, 2006, at 3:23 PM, Greg Hoover wrote:

I'm writing a large C-array to file using an NSFileHandle and am encapsulating the array in an NSData object. [...]

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

I would suggest just getting the file descriptor from the NSFileHandle and blasting out the data with write(2).


But maybe I'm a barbarian.


_______________________________________________ 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: Mixing Chinese and Japanese text
  • Previous by thread: Re: writing huge C-array to a file
  • Next by thread: Mail.app outline view font
  • Index(es):
    • Date
    • Thread