• 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: appendBytes memcpy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appendBytes memcpy


  • Subject: Re: appendBytes memcpy
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 01 Aug 2007 06:42:44 -0700


On Jul 31, 2007, at 11:46 PM, roger casaliƱas wrote:

I think the error is happening because we have exceeded the capacity of
NSMutableData. It's just a guess.


Is there a way to get the capacity of NSConcreteMutableData or it's
superclasses?

They are only limited by your address space and by the 32 bit value used to specify byte count (ignoring 64b version). In a typical application you can allocate up to around 3 GiB worth of memory since you virtual memory space is used to hold shared mappings of the Cocoa framework, etc. and has a few reserved ranges. The largest single allocation is around 2 GiB but can be less if you have fragmented your virtual space.


Note all of this is not affect by how much physical RAM you have in your system... since you never directly see that yourself, only virtual RAM addresses.

-Shawn _______________________________________________

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: appendBytes memcpy
      • From: "roger casaliƱas" <email@hidden>
  • Prev by Date: Re: Setting "Allows multiple fonts" to NO programmatically
  • Next by Date: Re: Releasing by reference
  • Previous by thread: Re: appendBytes memcpy
  • Next by thread: Re: appendBytes memcpy
  • Index(es):
    • Date
    • Thread