Tiny code readability improvement
This commit is contained in:
1 parent
85fcf69c75
commit
32fcc1ad04
1 file changed
+2
-2
@@ -92,10 +92,10 @@ namespace Recyclable.Collections
|
|||||||
? new T[localInts[requiredBlockCount]][]
|
? new T[localInts[requiredBlockCount]][]
|
||||||
: memoryBlocksPool.Rent(localInts[requiredBlockCount]);
|
: memoryBlocksPool.Rent(localInts[requiredBlockCount]);
|
||||||
|
|
||||||
var newMemoryBlocksSpan = new Span<T[]>(newMemoryBlocks);
|
Span<T[]> newMemoryBlocksSpan = new(newMemoryBlocks);
|
||||||
if (localInts[sourceBlockCount] > 0)
|
if (localInts[sourceBlockCount] > 0)
|
||||||
{
|
{
|
||||||
var sourceSpan = new Span<T[]>(source);
|
Span<T[]> sourceSpan = new(source);
|
||||||
sourceSpan.CopyTo(newMemoryBlocksSpan);
|
sourceSpan.CopyTo(newMemoryBlocksSpan);
|
||||||
if (localInts[sourceBlockCount] >= RecyclableDefaults.MinPooledArrayLength)
|
if (localInts[sourceBlockCount] >= RecyclableDefaults.MinPooledArrayLength)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user