コード例 #1
0
ファイル: JTweenTools.cs プロジェクト: OscarLeif/unity-jtween
 public static unsafe void CopyNativeArrayDirectlyToTweenLifetime(
     NativeArray <TweenLifetime> sourceArray,
     TweenLifetime[] destinationArray)
 {
     fixed(void *arrayPointer = destinationArray)
     {
         UnsafeUtility.MemCpy(
             arrayPointer,
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(sourceArray),
             sourceArray.Length * TweenLifetime.SizeOf());
     }
 }
コード例 #2
0
ファイル: JTweenTools.cs プロジェクト: OscarLeif/unity-jtween
 public static unsafe void CopyTweenLifetimeDirectlyToNativeArray(
     TweenLifetime[] sourceArray,
     NativeArray <TweenLifetime> destinationArray,
     int length)
 {
     fixed(void *arrayPointer = sourceArray)
     {
         UnsafeUtility.MemCpy(
             NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(destinationArray),
             arrayPointer,
             length * TweenLifetime.SizeOf());
     }
 }