Ejemplo n.º 1
0
			internal MemoryMappedPageManager(BufferManager bufferManager, uint storagePosition)
			{
				if(bufferManager == null)
					throw new ArgumentNullException("bufferManager");

				_bufferManager = bufferManager;
				_storagePosition = storagePosition;
				_pages = new MemoryMappedPage[BufferManager.ViewPageCount];
				this.PageSize = (int)(BufferManager.ViewPageTotalSize / BufferManager.ViewPageCount);
				this.BlocksPerPage = this.PageSize / _bufferManager.BlockSize;
			}
Ejemplo n.º 2
0
			internal BufferViewStream(int id, AllocationRecord record, BufferManager manager)
			{
				if(manager == null)
					throw new ArgumentNullException("manager");

				if(record.Flags == 0)
					throw new InvalidOperationException();

				_id = id;
				_record = record;
				_manager = manager;
				_position = 0;
			}