Re: NSData dataWithContentsOfMappedFile with huge files?
Re: NSData dataWithContentsOfMappedFile with huge files?
- Subject: Re: NSData dataWithContentsOfMappedFile with huge files?
- From: j o a r <email@hidden>
- Date: Mon, 28 Aug 2006 02:29:27 +0200
On 27 aug 2006, at 23.45, Cameron Hayne wrote:
It would indeed be interesting to know what techniques are used in
Hex Fiend, but ridiculousfish has said very little about how the
large file problems have been surmounted.
Check NSFileHandle and the *offset* methods. They take an (unsigned
long long), and so can deal with pretty large files...
In some special cases, for example if the file contains rows, and
each row is of the same size, or if the file header contains some
sort of index over the data in the file, you could use NSFileHandle
to efficiently access data in files of any size.
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