Re: accessing files larger than 2GB
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.