Пример #1
0
 public _IFunction4_147(CachingBin _enclosing)
 {
     this._enclosing = _enclosing;
 }
Пример #2
0
 public _IProcedure4_22(CachingBin _enclosing)
 {
     this._enclosing = _enclosing;
 }
Пример #3
0
 public _IRunnable_119(CachingBin _enclosing, IRunnable runnable)
 {
     this._enclosing = _enclosing;
     this.runnable   = runnable;
 }
Пример #4
0
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		private void WritePageToDisk(CachingBin.Page page)
		{
			base.Write(page._startAddress, page._buffer, page.Size());
			page._dirty = false;
		}
Пример #5
0
			public _IProcedure4_22(CachingBin _enclosing)
			{
				this._enclosing = _enclosing;
			}
Пример #6
0
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		private void LoadPage(CachingBin.Page page, long pos)
		{
			long startAddress = pos - pos % _pageSize;
			page._startAddress = startAddress;
			int count = _bin.Read(page._startAddress, page._buffer, page._bufferSize);
			if (count > 0)
			{
				page._endAddress = startAddress + count;
			}
			else
			{
				page._endAddress = startAddress;
			}
		}
Пример #7
0
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		private void FlushPage(CachingBin.Page page)
		{
			if (!page._dirty)
			{
				return;
			}
			WritePageToDisk(page);
		}
Пример #8
0
		private void ResetPageAddress(CachingBin.Page page, long startAddress)
		{
			page._startAddress = startAddress;
			page._endAddress = startAddress + _pageSize;
		}
Пример #9
0
			public _IFunction4_147(CachingBin _enclosing)
			{
				this._enclosing = _enclosing;
			}
Пример #10
0
			public _IRunnable_119(CachingBin _enclosing, IRunnable runnable)
			{
				this._enclosing = _enclosing;
				this.runnable = runnable;
			}