Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Iso9660Disc"/> class.
        /// </summary>
        /// <param name="rawDisc">A stream backed by the raw disc.</param>
        /// <param name="sectorSize">The size of a sector on the disc.</param>
        public Iso9660Disc(Stream rawDisc, int sectorSize)
        {
            if (rawDisc == null)
            {
                throw new ArgumentNullException("rawDisc");
            }

            this.rawDisc     = rawDisc;
            rawDisc.Position = 16 * sectorSize;

            this.pvd = PrimaryVolumeDescriptor.Read(rawDisc);

            this.initializeTask = Task.Factory.StartNew(Initialize);
        }