public WP6Document(string URL) { try { data = File.ReadAllBytes(URL); // writeToFile(data); fileHeader = new FileHeader(data); int startIndex = fileHeader.ptrIndexArea; indexArea = new IndexArea(data, startIndex); documentArea = new DocumentArea(this); int index = Array.FindIndex(indexArea.indexes, i => i.packetType == 94); if (index > 0) { prefixTimeStamp = new PrefixTimeStamp(this, index); } //writeWPStreamToFile(documentArea.WPStream, URL); //writeMapToFile(WP6_FunctionNames.map); //writeToFile(data); } catch { throw; } }
public WP6Document(string URL) { data = File.ReadAllBytes(URL); // writeToFile(data); fileHeader = new FileHeader(data); int startIndex = fileHeader.ptrIndexArea; indexArea = new IndexArea(data, startIndex); documentArea = new DocumentArea(this); //writeWPStreamToFile(documentArea.WPStream, URL); //writeMapToFile(WP6_FunctionNames.map); //writeToFile(data); }