I have this simple struct with sum of it's fields = 10 bits
public struct TestSTrut
{
public byte ByteField;
public bool BoolFieldOne;
public bool BoolFieldTwo;
public TestSTrut(byte a, bool b, bool c)
{
ByteField= a;
BoolFieldOne= b;
BoolFieldTwo= c;
}
}
Now if i put 1000 of those in array the array is 3012 bytes in size which means each struct is 3 bytes ? but is should be 1250 bytes ? (10*1000) / 9.
If I put 1000 bytes in an array for comparison it's 1012 bytes in size (12 bytes for array overhead).
I am testing this using Visual studio in debug in x64