public ArrayPage <T> GetPage(int capacity)
            {
                if (_currentPage == null)
                {
                    return(_currentPage = Get().AddReference());
                }

                if (_currentPage.CanAllocate(capacity))
                {
                    return(_currentPage);
                }

                _currentPage.ReleaseReference();
                _currentPage = Get().AddReference();

                return(_currentPage);
            }
 public ArrayPageSegment(ArrayPage <T> page, int offset, ReadOnlySpan <T> span)
 {
     Page   = page;
     Offset = offset;
     Span   = span;
 }