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 void Unlock() { Page.ReleaseReference(); }