/// <summary> /// Initializes a new instance of the <see cref="CopyMemoryAlias" /> class. /// </summary> /// <param name="associatedStructure">The associated structure.</param> /// <param name="memoryAlias">The memory alias.</param> public LazyCopyMemoryAlias(IWriteableSnapshotStructure associatedStructure, LazyCopyMemoryAlias memoryAlias) { this.sourceIndex = memoryAlias.sourceIndex; this.mayAliases = memoryAlias.mayAliases.Clone(); this.mustAliases = memoryAlias.mustAliases.Clone(); this.associatedStructure = associatedStructure; }
public IMemoryAlias CreateMemoryAlias(IWriteableSnapshotStructure targetStructure, MemoryIndex index) { LazyCopyMemoryAlias aliases = new LazyCopyMemoryAlias(targetStructure); aliases.SetSourceIndex(index); return(aliases); }