From fb49a5bca6ce6d9ea3fea362d344d208c6bb0b1d Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 26 Apr 2024 01:02:09 +0900 Subject: [PATCH] checking ... --- src/DotRecast.Core/RcArrays.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/DotRecast.Core/RcArrays.cs b/src/DotRecast.Core/RcArrays.cs index e8c291a..c06d605 100644 --- a/src/DotRecast.Core/RcArrays.cs +++ b/src/DotRecast.Core/RcArrays.cs @@ -11,6 +11,13 @@ namespace DotRecast.Core { Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Copy(Span sourceArray, int sourceIndex, Span destinationArray, int destinationIndex, int length) + { + sourceArray.Slice(sourceIndex, length).CopyTo(destinationArray.Slice(destinationIndex)); + } + // Type Safe Copy [MethodImpl(MethodImplOptions.AggressiveInlining)]