private CachingBin.Page SyncReadPage(long startAddress) { CachingBin.Page page = new CachingBin.Page(_pageSize); LoadPage(page, startAddress); page.EnsureEndAddress(_fileLength); return(page); }
private CachingBin.Page GetPage(long startAddress, IFunction4 producer) { CachingBin.Page page = ((CachingBin.Page)_cache.Produce(PageAddressFor(startAddress ), producer, _onDiscardPage)); page.EnsureEndAddress(_fileLength); return(page); }
private CachingBin.Page SyncReadPage(long startAddress) { CachingBin.Page page = new CachingBin.Page(_pageSize); LoadPage(page, startAddress); page.EnsureEndAddress(_fileLength); return page; }