checking ...

This commit is contained in:
ikpil 2024-04-26 01:02:09 +09:00
parent 97777511a7
commit fb49a5bca6
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,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)]