You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use ref iteration for all types to eliminate bounds checks
110
110
writer.AppendLine(" // Stack serializes from top to bottom with ref iteration");
111
-
writer.AppendLine("#if !UNITY_2020_2_OR_NEWER");
111
+
writer.AppendLine("#if NET5_0_OR_GREATER");
112
112
writer.AppendLine(" ref var cur = ref System.Runtime.CompilerServices.Unsafe.Add(ref System.Runtime.InteropServices.MemoryMarshal.GetArrayDataReference(array), cnt - 1);");
113
113
writer.AppendLine(" ref var end = ref System.Runtime.CompilerServices.Unsafe.Subtract(ref System.Runtime.InteropServices.MemoryMarshal.GetArrayDataReference(array), 1);");
0 commit comments