pkNX/pkNX.Containers/SpanExtensions.cs
Kurt 31b45ee883 Minor clean
Remove unused namespace usings
2025-06-23 00:25:11 -05:00

15 lines
357 B
C#

using System;
using System.Runtime.CompilerServices;
namespace pkNX.Containers;
public static class SpanExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int IndexOf<T>(this ReadOnlySpan<T> span, T value, int offset)
where T : IEquatable<T>?
{
return offset + span[offset..].IndexOf(value);
}
}