Replace usage of Utils.ExtractArrayFromList with Span

This commit is contained in:
2022-12-22 18:57:40 +02:00
parent 6a41ab0b6d
commit e03a819176
6 changed files with 17 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using FlaxEngine;
namespace FlaxEditor
@@ -20,7 +21,7 @@ namespace FlaxEditor
private int[] _highlightIndicesSet;
private Model _highlightTrianglesModel;
internal IntPtr[] ActorsPtrs => Utils.ExtractArrayFromList(_actors);
internal Span<IntPtr> ActorsPtrs => CollectionsMarshal.AsSpan(_actors);
internal int ActorsCount => _actors.Count;