diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 56588e4..31dc4ad 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -14,7 +14,7 @@ namespace Recyclable.Collections private int _blockSize; private int _lastBlockIndex; - private int _lastItemIndex; + private int _lastItemIndex; protected T[][] _memoryBlocks; private long _capacity; @@ -270,6 +270,8 @@ namespace Recyclable.Collections set => new Span(_memoryBlocks[index / _blockSize])[index % _blockSize] = value; } + public T[][] MemoryBlocks { get => _memoryBlocks; } + public void Add(T item) { long requiredCapacity = _longCount + 1;