small size buffer op ok

This commit is contained in:
Youmu Liu
2025-11-14 18:28:15 +08:00
parent 1417785726
commit a8c522ab23
19 changed files with 578 additions and 1048 deletions
@@ -99,9 +99,7 @@ namespace StgSharp.Collections
public void Push(T item)
{
_values[++_index] = _index < _values.Length - 1 ?
item :
throw new InvalidOperationException("Stack is full.");
_values[++_index] = _index < _values.Length ? item : throw new InvalidOperationException("Stack is full.");
}
public void PushRange(ReadOnlySpan<T> span)