예제 #1
0
 public static unsafe int GetHashCode <T>(ref T lhs, TypeInfo typeInfo) where T : struct
 {
     return(GetHashCode(UnsafeUtility.AddressOf(ref lhs), typeInfo));
 }
예제 #2
0
 public static unsafe bool Equals <T>(ref T lhs, ref T rhs, TypeInfo typeInfo) where T : struct
 {
     return(Equals(UnsafeUtility.AddressOf(ref lhs), UnsafeUtility.AddressOf(ref rhs), typeInfo));
 }
예제 #3
0
 private static void AddTypeInfoToTables(TypeInfo typeInfo)
 {
     s_Types[typeInfo.TypeIndex & ClearFlagsMask] = typeInfo;
     s_StableTypeHashToTypeIndex.Add(typeInfo.StableTypeHash, typeInfo.TypeIndex);
     ++s_Count;
 }