public IsoSectorStream(int sectorSize, IEnumerable <ICdSector> sectors, IIsoSectorInfoDecoder isoSectorInfoDecoder, long?length) { _sectorSize = sectorSize; _isoSectorInfoDecoder = isoSectorInfoDecoder; _sectorEnumerator = sectors.GetEnumerator(); _sectorEnumerator.MoveNext(); _currentSector = _isoSectorInfoDecoder.Decode(_sectorEnumerator.Current); _remaining = length ?? long.MaxValue; _length = length; }
public IsoCdFileDecoder( IIsoStorageMediumDecoder isoStorageMediumDecoder, IIsoSectorInfoDecoder isoSectorInfoDecoder, IIsoDescriptorSectorFinder isoDescriptorSectorFinder, IIsoPathTableDecoder isoPathTableDecoder, IIsoSectorStreamFactory isoSectorStreamFactory, IIsoDirectoryTableDecoder isoDirectoryTableDecoder) { _isoStorageMediumDecoder = isoStorageMediumDecoder; _isoSectorInfoDecoder = isoSectorInfoDecoder; _isoDescriptorSectorFinder = isoDescriptorSectorFinder; _isoPathTableDecoder = isoPathTableDecoder; _isoSectorStreamFactory = isoSectorStreamFactory; _isoDirectoryTableDecoder = isoDirectoryTableDecoder; }