Пример #1
0
 private CachingBin.Page SyncReadPage(long startAddress)
 {
     CachingBin.Page page = new CachingBin.Page(_pageSize);
     LoadPage(page, startAddress);
     page.EnsureEndAddress(_fileLength);
     return(page);
 }
Пример #2
0
 private CachingBin.Page GetPage(long startAddress, IFunction4 producer)
 {
     CachingBin.Page page = ((CachingBin.Page)_cache.Produce(PageAddressFor(startAddress
                                                                            ), producer, _onDiscardPage));
     page.EnsureEndAddress(_fileLength);
     return(page);
 }
Пример #3
0
		private CachingBin.Page SyncReadPage(long startAddress)
		{
			CachingBin.Page page = new CachingBin.Page(_pageSize);
			LoadPage(page, startAddress);
			page.EnsureEndAddress(_fileLength);
			return page;
		}