示例#1
0
        public void Read(Stream stream)
        {
            StreamRW rw = new StreamRW(stream);

            headerSignature = rw.ReadBytes(8);
            CheckSignature();
            clsid        = rw.ReadBytes(16);
            minorVersion = rw.ReadUInt16();
            majorVersion = rw.ReadUInt16();
            CheckVersion();
            byteOrder              = rw.ReadUInt16();
            sectorShift            = rw.ReadUInt16();
            miniSectorShift        = rw.ReadUInt16();
            unUsed                 = rw.ReadBytes(6);
            directorySectorsNumber = rw.ReadInt32();
            fatSectorsNumber       = rw.ReadInt32();
            firstDirectorySectorID = rw.ReadInt32();
            unUsed2                = rw.ReadUInt32();
            minSizeStandardStream  = rw.ReadUInt32();
            firstMiniFATSectorID   = rw.ReadInt32();
            miniFATSectorsNumber   = rw.ReadUInt32();
            firstDIFATSectorID     = rw.ReadInt32();
            difatSectorsNumber     = rw.ReadUInt32();

            for (int i = 0; i < 109; i++)
            {
                this.DIFAT[i] = rw.ReadInt32();
            }

            rw.Close();
        }
示例#2
0
        public void Read(Stream stream)
        {
            var rw = new StreamRW(stream);

            HeaderSignature = rw.ReadBytes(8);
            CheckSignature();
            CLSID        = rw.ReadBytes(16);
            MinorVersion = rw.ReadUInt16();
            MajorVersion = rw.ReadUInt16();
            CheckVersion();
            ByteOrder              = rw.ReadUInt16();
            SectorShift            = rw.ReadUInt16();
            MiniSectorShift        = rw.ReadUInt16();
            UnUsed                 = rw.ReadBytes(6);
            DirectorySectorsNumber = rw.ReadInt32();
            FATSectorsNumber       = rw.ReadInt32();
            FirstDirectorySectorId = rw.ReadInt32();
            UnUsed2                = rw.ReadUInt32();
            MinSizeStandardStream  = rw.ReadUInt32();
            FirstMiniFATSectorId   = rw.ReadInt32();
            MiniFATSectorsNumber   = rw.ReadUInt32();
            FirstDIFATSectorId     = rw.ReadInt32();
            DIFATSectorsNumber     = rw.ReadUInt32();

            for (var i = 0; i < 109; i++)
            {
                DIFAT[i] = rw.ReadInt32();
            }

            rw.Close();
        }
示例#3
0
        public void Read(Stream stream)
        {
            StreamRW rw = new StreamRW(stream);

            headerSignature = rw.ReadBytes(8);
            CheckSignature();
            clsid = rw.ReadBytes(16);
            minorVersion = rw.ReadUInt16();
            majorVersion = rw.ReadUInt16();
            CheckVersion();
            byteOrder = rw.ReadUInt16();
            sectorShift = rw.ReadUInt16();
            miniSectorShift = rw.ReadUInt16();
            unUsed = rw.ReadBytes(6);
            directorySectorsNumber = rw.ReadInt32();
            fatSectorsNumber = rw.ReadInt32();
            firstDirectorySectorID = rw.ReadInt32();
            unUsed2 = rw.ReadUInt32();
            minSizeStandardStream = rw.ReadUInt32();
            firstMiniFATSectorID = rw.ReadInt32();
            miniFATSectorsNumber = rw.ReadUInt32();
            firstDIFATSectorID = rw.ReadInt32();
            difatSectorsNumber = rw.ReadUInt32();

            for (int i = 0; i < 109; i++)
            {
                this.DIFAT[i] = rw.ReadInt32();
            }

            rw.Close();
        }