public BinaryMDL(System.IO.BinaryReader br) { binaryHeader.fillFromReader(br); // Load the Header Info. if (binaryHeader.isValid()) { // read in the importedNamespaces for (int i = 0; i < binaryHeader._3_ImportedNameSpacesCount; i++) { importedLibriesList.Add(AlignedString.ReadAlignedString(br)); } // read in the importedSymbols for (int i = 0; i < binaryHeader._4_ImportedSymbolCount; i++) { importedSymbolList.Add(new ImportedSymbol(br)); } // read in the exportedSymbols for (int i = 0; i < binaryHeader._5_ExportedSymbolCount; i++) { exportedSymbolsList.Add(AlignedString.ReadAlignedString(br)); } // read in the exportedSymbols Data for (int i = 0; i < binaryHeader._5_ExportedSymbolCount; i++) { exportedSymbolsDataList.Add(new SymbolData(br, importedSymbolList)); } } }
public ImportedSymbol(System.IO.BinaryReader br) { // read in the index index = br.ReadInt32(); // read in the alignedString value = AlignedString.ReadAlignedString(br); }