示例#1
0
 /// <summary>activate the memory block, swapping it in at the pre-specified address</summary>
 /// <exception cref="InvalidOperationException"><see cref="MemoryBlock.Active"/> is <see langword="true"/> or failed to map file view</exception>
 public void Activate()
 {
     if (Active)
     {
         throw new InvalidOperationException("Already active");
     }
     _pal.Activate();
     ProtectAll();
     Active = true;
 }
示例#2
0
 /// <summary>activate the memory block, swapping it in at the pre-specified address</summary>
 /// <exception cref="InvalidOperationException"><see cref="MemoryBlock.Active"/> is <see langword="true"/> or failed to map file view</exception>
 public void Activate()
 {
     if (Active)
     {
         throw new InvalidOperationException("Already active");
     }
     _pal.Activate();
     ProtectAll();
     if (_sealed)
     {
         _pal.SetWriteStatus(_dirtydata);
     }
     Active = true;
 }
示例#3
0
 /// <summary>activate the memory block, swapping it in at the pre-specified address</summary>
 /// <exception cref="InvalidOperationException"><see cref="MemoryBlock.Active"/> is <see langword="true"/> or failed to map file view</exception>
 public void Activate()
 {
     if (Active)
     {
         throw new InvalidOperationException("Already active");
     }
     _pal.Activate();
     if (CommittedSize > LastActiveCommittedSize)
     {
         _pal.Commit(CommittedSize);
         LastActiveCommittedSize = CommittedSize;
     }
     ProtectAll();
     Active = true;
 }