Re: Size limit of NSData or NSFileHandle?
Re: Size limit of NSData or NSFileHandle?
- Subject: Re: Size limit of NSData or NSFileHandle?
- From: Christian Stieber <email@hidden>
- Date: Mon, 10 Apr 2006 12:49:50 +0200
At 16:33 09.04.2006 -0400, Ivan Kourtev wrote:
Is anyone aware of a size limit in NSData (I am aware of the supposed
2GB size limit of NSData according to the docs) or NSFileHandle?
I wouldn't be surprised if you run into limits with mmap,
per-process memory space or something similar. My idea would
be to try mapping that file using mmap() yourself, and see
if it works. At least you'll know whether Darwin or Cocoa
is the part to blame :-)
Also, keep in mind that a lot of classes have that 2 (or 4, if you
feel lucky) GB limit, since sizes, lengths etc. are always typed
"unsigned int", never off_t. At least I always considered the
limit to be 2GB (unsigned int would allow for 4GB, but never
trust software you haven't written yourself --- an "int" in the
wrong place and things get messed up bad); never actually tried it
--- I'm just using my own classes when dealing with potentially
"large" files anyway.
Christian
_______________________________________________
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