public bool GetPosition(int typeIndex, out TypePosition pos)
 {
     for (int i = 0; i < TypePositions.Length; i++)
     {
         pos = TypePositions[i];
         if (TypePositions[i].TypeIndex == typeIndex)
         {
             return(true);
         }
     }
     pos = default;
     return(false);
 }
        public bool GetPosition(Type type, out TypePosition pos)
        {
            var index = TypeManager.GetTypeIndex(type);

            return(GetPosition(index, out pos));
        }
        internal int                        Size;          //总的内存大小

        public bool GetPosition <T>(out TypePosition pos) where T : struct
        {
            var index = TypeManager.GetTypeIndex <T>();

            return(GetPosition(index, out pos));
        }