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:
2026-04-03 15:43:31 +09:00
parent 7d621ae6b3
commit a95381e16d
4 changed files with 114 additions and 5 deletions

View File

@@ -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;