diff --git a/DataStructures/FasterList.cs b/DataStructures/FasterList.cs index cfd9825..384683c 100644 --- a/DataStructures/FasterList.cs +++ b/DataStructures/FasterList.cs @@ -466,7 +466,10 @@ namespace Svelto.DataStructures readonly FasterList _list; } - public class FasterList : IList + public interface IFasterList + {} + + public class FasterList : IList, IFasterList { const int MIN_SIZE = 4; @@ -807,9 +810,11 @@ namespace Svelto.DataStructures { return fasterList._count; } - - public static T[] ToArrayFast(FasterList fasterList) + + public static T[] ToArrayFast(FasterList fasterList, out int count) { + count = fasterList._count; + return fasterList._buffer; } }