How are the digits in ObjC method type encoding calculated?
Is is a follow-up to my previous question: What are the digits in an ObjC method type encoding string? Say there is an encoding: v24@0:4:8@12B16@20 How are those numbers calculated? B is a char so it should occupy just 1 byte (not 4 bytes). Does it have something to do with "alignment"? What is the size of void ? Is it correct to calculate the numbers as follows? Ask sizeof on every item and round up the result to multiple of 4? And the first number becomes the sum of all the other ones? The numbers were used in the m68K days to denote stack layout. That is, you could literally decode the the