Exemple #1
0
        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];
        }
Exemple #2
0
        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];
        }
Exemple #3
0
 public DiskDsk(byte[] data, bool isWriteProtected, SectorSkew sectorSkew)
     : base(data, isWriteProtected)
 {
     _sectorSkew = SectorSkewMode[(int)sectorSkew];
 }
Exemple #4
0
 public DiskDsk(string name, byte[] data, bool isWriteProtected, SectorSkew sectorSkew) :
     base(name, data, isWriteProtected)
 {
     _sectorSkew = SectorSkewMode[(int)sectorSkew];
 }