mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
16 lines
No EOL
623 B
C#
16 lines
No EOL
623 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Indy.IL2CPU.CustomImplementation.CompilerServices {
|
|
public class RuntimeHelpers {
|
|
//[MethodAlias(Name = "System_Void___System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray___System_Array__System_RuntimeFieldHandle___")]
|
|
//[DllImport("test.dll")]
|
|
//public static extern void InitializeArray(Array aArray, RuntimeFieldHandle aFieldHandle);
|
|
public static void InitializeArrayImpl(int[] aArray, int[] aFieldHandle) {
|
|
for (int i = 0; i < aArray.Length; i++) {
|
|
aArray[i] = aFieldHandle[i];
|
|
}
|
|
}
|
|
}
|
|
} |