Re: writing huge C-array to a file
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