mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
23 lines
No EOL
853 B
C#
23 lines
No EOL
853 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.CustomImplementation.System {
|
|
public static class ArrayImpl {
|
|
[MethodAlias(Name = "System.Void System.Array.Copy(System.Array,System.Int32,System.Array,System.Int32,System.Int32,System.Boolean)")]
|
|
public static void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, bool reliable) {
|
|
for(int i = sourceIndex; i < length; i++) {
|
|
destinationArray.SetValue(sourceArray.GetValue(i), (i - sourceIndex) + destinationIndex);
|
|
}
|
|
}
|
|
|
|
// public static void InitArrayWithReferenceTypes(, uint aSize) {
|
|
//
|
|
// for(int i = 0; i < aArray.Length; i++) {
|
|
// uint xNewObj = RuntimeEngine.Heap_AllocNewObject(aSize);
|
|
// aArray.SetValue(xNewObj, i);
|
|
// }
|
|
// }
|
|
}
|
|
} |