Possible Duplicate:
What exactly is an 'aligned pointer' ?
please give me the example of this statement:
A normal pointer type was implicitly cast to an aligned pointer type.
actually it is c language Question
Possible Duplicate:
What exactly is an 'aligned pointer' ?
please give me the example of this statement:
A normal pointer type was implicitly cast to an aligned pointer type.
actually it is c language Question
I don't believe you can cast them. Pointers which are aligned are normal. You have to declare something as __packed
to get it to be un-aligned.
You should read up on how the ARM processor works. Alignment causes very quick memory access. If you need things packed further, I recommend storing your data as a BLOB in a NSData
or using a C-style byte[] array.
Also, see this question/answer. and this one.