mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-01 13:51:02 +00:00
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using zword = System.UInt16;
|
|
using zbyte = System.Byte;
|
|
|
|
namespace Frotz.Other
|
|
{
|
|
internal static class ArrayCopy
|
|
{
|
|
internal static void Copy(ushort[] sourceArray, long sourceIndex, ushort[] destinationArray, long destinationIndex, long length)
|
|
{
|
|
for (long i = 0; i < length; i++)
|
|
{
|
|
destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];
|
|
}
|
|
|
|
#if SILVERLIGHT
|
|
|
|
#else
|
|
// System.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length);
|
|
#endif
|
|
}
|
|
|
|
internal static void Copy(zbyte[] sourceArray, long sourceIndex, zbyte[] destinationArray, long destinationIndex, long length)
|
|
{
|
|
for (long i = 0; i < length; i++)
|
|
{
|
|
destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];
|
|
}
|
|
|
|
#if SILVERLIGHT
|
|
|
|
#else
|
|
// System.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length);
|
|
#endif
|
|
}
|
|
}
|
|
}
|