• 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: preventing bad memory access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: preventing bad memory access
      • From: Don Quixote de la Mancha <email@hidden>
References: 
 >preventing bad memory access (From: Wilker <email@hidden>)

  • Prev by Date: Re: Blocks vs. life, the universe and everything
  • Next by Date: Custom NSArrayController that manages its own array?
  • Previous by thread: Re: preventing bad memory access
  • Next by thread: Re: preventing bad memory access
  • Index(es):
    • Date
    • Thread