Refactor collections to use 'scoped in T' parameters
Updated Add/Remove/Enqueue/Push/etc. methods in core unsafe collections to accept parameters as 'scoped in T' for improved performance and safety. Bumped assembly versions in both csproj files.
This commit is contained in:
@@ -122,7 +122,7 @@ public unsafe struct UnsafeQueue<T> : IUnsafeCollection<T>
|
||||
/// stored in a circular buffer.
|
||||
/// </summary>
|
||||
/// <param name="value">The item to be added to the collection.</param>
|
||||
public void Enqueue(T value)
|
||||
public void Enqueue(scoped in T value)
|
||||
{
|
||||
if (_count >= Capacity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user