示例#1
0
 public FixedDiskBlockFactory(VhdFile vhdFile, long blockSize)
 {
     this.vhdFile       = vhdFile;
     this.blockSize     = blockSize;
     this.BlockCount    = CalculateBlockCount();
     this.sectorFactory = new SectorFactory(vhdFile, this);
 }
 public FixedDiskBlockFactory(VhdFile vhdFile, long blockSize)
 {
     this.vhdFile = vhdFile;
     this.blockSize = blockSize;
     this.BlockCount = CalculateBlockCount();
     this.sectorFactory = new SectorFactory(vhdFile, this);
 }
示例#3
0
 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());
 }
 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());
 }