public static int Find <T, TKey>(List <T> list, int start, int length, TKey?key, Func <T, TKey?> selector) => Find(CollectionsMarshal.AsSpan(list).Slice(start, length), key, selector, Comparer <TKey> .Default);
public static int Find <T>(List <T> list, Func <T, int> comparer) => Find(CollectionsMarshal.AsSpan(list), comparer);
public static int Find <T>(List <T> list, int start, int length, T key, IComparer <T> comparer) => Find(CollectionsMarshal.AsSpan(list).Slice(start, length), key, Functions <T> .Identify, comparer);
public static int Find <T, TKey>(List <T> list, TKey?key, Func <T, TKey?> selector, IComparer <TKey> comparer) => Find(CollectionsMarshal.AsSpan(list), key, selector, comparer);
public static int Find <T>(List <T> list, T key, IComparer <T> comparer) => Find(CollectionsMarshal.AsSpan(list), key, Functions <T> .Identify, comparer);
public static int FindLast <T>(List <T> list, int start, int length, Func <T, int> comparer) => FindLast(CollectionsMarshal.AsSpan(list).Slice(start, length), comparer);
public void ConstantSizeCollection() { var longVal = 0x12345678ABCDEF10L; Assert.Equal(longVal, MemoryMarshal.Read <long>(CollectionsMarshal.AsSpan(NativeExportsNE.Collections.GetLongBytes(longVal)))); }
internal static ReadOnlySpan <World> ReadWorlds() => CollectionsMarshal.AsSpan(Worlds);