/// <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; }
/// <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; }
/// <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; }