public FixedDiskBlockFactory(VhdFile vhdFile, long blockSize) { this.vhdFile = vhdFile; this.blockSize = blockSize; this.BlockCount = CalculateBlockCount(); this.sectorFactory = new SectorFactory(vhdFile, this); }
public DifferencingDiskBlockFactory(VhdFile vhdFile) : base(vhdFile) { this.bitMapFactory = new BitMapFactory(vhdFile); this.sectorFactory = new SectorFactory(vhdFile, this); this.parentBlockFactory = vhdFile.Parent.DiskType != DiskType.Fixed ? vhdFile.Parent.GetBlockFactory() : new FixedDiskBlockFactory(vhdFile.Parent, this.GetBlockSize()); }