Re: sizeof(aStruct) in Xcode 4
Re: sizeof(aStruct) in Xcode 4
- Subject: Re: sizeof(aStruct) in Xcode 4
- From: Mark Wagner <email@hidden>
- Date: Tue, 21 Jun 2011 12:59:47 -0700
On Tue, Jun 21, 2011 at 12:39, McLaughlin, Michael P. <email@hidden> wrote:
> Clearly, I am confused by the proliferation of int types and unsure what the
> recommended practice should be to avoid these errors.
Recommended practice is to not count on the in-memory size and layout
of a struct. If you're serializing and deserializing a data
structure, you should do it yourself, one element at a time.
--
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden