• 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: accessing files larger than 2GB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing files larger than 2GB


  • Subject: Re: accessing files larger than 2GB
  • From: Jeff Harrell <email@hidden>
  • Date: Mon, 7 Jul 2003 18:05:56 -0500

On Monday, July 7, 2003, at 05:52 PM, Chris Meyer wrote:

Is there a preferred way in Cocoa to access the data of files larger than 2GB? I need to read blocks and write blocks into the files. The only option I see is to use Carbon API's. Anyone know of another (better/more current) way?

You don't need to do anything special. NSFileHandle's -seekToFileOffset method takes an unsigned long long argument. That's a 64-bit integer. In theory, you can address up to 18 billion gigs this way.

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: accessing files larger than 2GB
      • From: mathew <email@hidden>
    • Re: accessing files larger than 2GB
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >accessing files larger than 2GB (From: Chris Meyer <email@hidden>)

  • Prev by Date: accessing files larger than 2GB
  • Next by Date: Dragging from NSTableView to Finder
  • Previous by thread: accessing files larger than 2GB
  • Next by thread: Re: accessing files larger than 2GB
  • Index(es):
    • Date
    • Thread