public DiskDsk(string name, Stream stream, bool isWriteProtected, SectorSkew sectorSkew) : base(name, new byte[TrackCount * SectorCount * SectorSize], isWriteProtected) { if (stream == null) { throw new ArgumentNullException("stream"); } stream.ReadBlock(Data); _sectorSkew = SectorSkewMode[(int)sectorSkew]; }
public DiskDsk(byte[] data, bool isWriteProtected, SectorSkew sectorSkew) : base(data, isWriteProtected) { _sectorSkew = SectorSkewMode[(int)sectorSkew]; }
public DiskDsk(string name, byte[] data, bool isWriteProtected, SectorSkew sectorSkew) : base(name, data, isWriteProtected) { _sectorSkew = SectorSkewMode[(int)sectorSkew]; }