This commit is contained in:
Miha Kralj
2024-10-08 13:59:33 -07:00
parent 46f5ffe9e9
commit 0bc41854aa
19 changed files with 48 additions and 218 deletions
+2 -9
View File
@@ -89,9 +89,9 @@ public class CircularBuffer : IEnumerable<double>
}
[MethodImpl(MethodImplOptions.NoInlining)]
private static void ThrowArgumentOutOfRangeException()
private static void ThrowArgumentOutOfRangeException(string paramName)
{
throw new ArgumentOutOfRangeException("index", "Index is out of range.");
throw new ArgumentOutOfRangeException(paramName, "Index is out of range.");
}
/// <summary>
@@ -221,13 +221,6 @@ public class CircularBuffer : IEnumerable<double>
if (_start + _size <= Capacity)
{
return new ReadOnlySpan<double>(_buffer, _start, _size);
<<<<<<< HEAD
}
else
{
return new ReadOnlySpan<double>(ToArray());
=======
>>>>>>> dev
}
return new ReadOnlySpan<double>(ToArray());