Skip to content

Commit

Permalink
checking ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Apr 27, 2024
1 parent 9777751 commit fb49a5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DotRecast.Core/RcArrays.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ public static void Copy<T>(T[] sourceArray, long sourceIndex, T[] destinationArr
{
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)]
Expand Down

0 comments on commit fb49a5b

Please sign in to comment.