feat(queue): improve Resize logic and add unit tests
Refactored UnsafeQueue<T>.Resize to prevent shrinking below current count and handle wrap-around copying correctly. Exposed AllocationHandle in UnsafeArray<T> via a new property. Bumped project version to 1.6.10. Added TestUnsafeQueue class to cover core queue operations.
This commit is contained in:
@@ -81,6 +81,8 @@ public unsafe struct UnsafeArray<T> : IUnsafeCollection<T>
|
||||
#endif
|
||||
private AllocationHandle _allocationHandle;
|
||||
|
||||
internal readonly AllocationHandle AllocationHandle => _allocationHandle;
|
||||
|
||||
public readonly int Count => _count;
|
||||
public readonly int Length => _count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user