internal int[] ReadSectorDataAsIntegers(int SID) { int sectorOffset = this.GetSectorOffset(SID); this.Reader.BaseStream.Position = (long)sectorOffset; return(CompoundDocument.ReadArrayOfInt32(this.Reader, this.SectorSize / 4)); }
private static FileHeader ReadHeader(BinaryReader reader) { return(new FileHeader { FileTypeIdentifier = reader.ReadBytes(8), FileIdentifier = new Guid(reader.ReadBytes(16)), RevisionNumber = reader.ReadUInt16(), VersionNumber = reader.ReadUInt16(), ByteOrderMark = reader.ReadBytes(2), SectorSizeInPot = reader.ReadUInt16(), ShortSectorSizeInPot = reader.ReadUInt16(), UnUsed10 = reader.ReadBytes(10), NumberOfSATSectors = reader.ReadInt32(), FirstSectorIDofDirectoryStream = reader.ReadInt32(), UnUsed4 = reader.ReadBytes(4), MinimumStreamSize = reader.ReadInt32(), FirstSectorIDofShortSectorAllocationTable = reader.ReadInt32(), NumberOfShortSectors = reader.ReadInt32(), FirstSectorIDofMasterSectorAllocationTable = reader.ReadInt32(), NumberOfMasterSectors = reader.ReadInt32(), MasterSectorAllocationTable = CompoundDocument.ReadArrayOfInt32(reader, 109) }); }