Im testing how much memory is an object in memory, and i trying the next in wtk1.0.4…
public class Rectangle
{
}
public class RectangleB
{
public byte x,y,width,height;
}
public class RectangleI
{
public int x,y,width,height;
}
public class RectangleL
{
public long x,y,width,height;
}
The class Rectangle is 12 bytes, the RectangleB and RectangleI is 28 bytes and RectangleL is 44.
I would like optimize memory size using RectangleB instead RectangleI, but its the same size…
Anybody knows why RectangleB and RectangleI have the same size? its cause emulator or also its at real mobile?
Thanks