Re: preventing bad memory access
Re: preventing bad memory access
- Subject: Re: preventing bad memory access
- From: Jens Alfke <email@hidden>
- Date: Tue, 18 Oct 2011 09:22:11 -0700
On Oct 17, 2011, at 9:26 PM, Wilker wrote:
> I wanna it mapped always and uncached because I don't wanna read the entire
> file, just some pieces of it (small pieces), so, if the user is acessing a
> file from an external drive, and the file has 8gb, I only wanna read 64kb,
> so, I don't wanna read it all just for 64kb.
Just use fopen/fseek/fread/fclose. Mapping in the entire file just so you can read 64kb is overkill.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden