private static uint? GetAlignment()

in SharpGen/Model/CsFundamentalType.cs [80:95]


        private static uint? GetAlignment(Type type)
        {
            if (type == typeof(long) || type == typeof(ulong) || type == typeof(double))
                return 8;

            if (type == typeof(int) || type == typeof(uint) || type == typeof(float))
                return 4;

            if (type == typeof(short) || type == typeof(ushort) || type == typeof(char))
                return 2;

            if (type == typeof(byte) || type == typeof(sbyte))
                return 1;

            return null;
        }