• 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: NSData dataWithContentsOfMappedFile with huge files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSData dataWithContentsOfMappedFile with huge files? (From: Cameron Hayne <email@hidden>)
 >Re: NSData dataWithContentsOfMappedFile with huge files? (From: "Shawn Erickson" <email@hidden>)
 >Re: NSData dataWithContentsOfMappedFile with huge files? (From: Cameron Hayne <email@hidden>)
 >Re: NSData dataWithContentsOfMappedFile with huge files? (From: Robert Martin <email@hidden>)
 >Re: NSData dataWithContentsOfMappedFile with huge files? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: NSData dataWithContentsOfMappedFile with huge files?
  • Next by Date: Re: Re: Respond to Click in TextView
  • Previous by thread: Re: NSData dataWithContentsOfMappedFile with huge files?
  • Next by thread: searchTerms magic
  • Index(es):
    • Date
    • Thread