forked from mirror/DotRecast
checking ...
This commit is contained in:
parent
97777511a7
commit
fb49a5bca6
|
@ -12,6 +12,13 @@ namespace DotRecast.Core
|
|||
Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Copy<T>(Span<T> sourceArray, int sourceIndex, Span<T> destinationArray, int destinationIndex, int length)
|
||||
{
|
||||
sourceArray.Slice(sourceIndex, length).CopyTo(destinationArray.Slice(destinationIndex));
|
||||
}
|
||||
|
||||
|
||||
// Type Safe Copy
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Copy<T>(T[] sourceArray, T[] destinationArray, long length)
|
||||
|
|
Loading…
Reference in New Issue