protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// true if the Dispose method was invoked by user code. /// |
return | void |
public void ReadCompressedZip(string filepath) { while (BackgroundWriting) ; ZipInputStream instream = new ZipInputStream(filepath); BinaryFormatter formatter = new BinaryFormatter(); instream.GetNextEntry(); searchDump = new TCPTCPGecko.Dump((uint)formatter.Deserialize(instream), (uint)formatter.Deserialize(instream)); instream.Read(searchDump.mem, 0, (int)(searchDump.EndAddress - searchDump.StartAddress)); instream.GetNextEntry(); resultsList = (System.Collections.Generic.List<UInt32>)formatter.Deserialize(instream); instream.Close(); instream.Dispose(); }
public List<UInt32> LoadSearchList(string filepath) { // spin while background writing to prevent us from reading a file that has yet to be written while (BackgroundWriting) ; ZipInputStream instream = new ZipInputStream(filepath); BinaryFormatter formatter = new BinaryFormatter(); // First entry is the dump instream.GetNextEntry(); // Second entry is the list instream.GetNextEntry(); List<UInt32> searchList = (List<UInt32>)formatter.Deserialize(instream); instream.Close(); instream.Dispose(); return searchList; }
public Dump LoadSearchDump(string filepath) { // spin while background writing to prevent us from reading a file that has yet to be written while (BackgroundWriting) ; ZipInputStream instream = new ZipInputStream(filepath); BinaryFormatter formatter = new BinaryFormatter(); // First entry is the dump instream.GetNextEntry(); Dump searchDump = new Dump((uint)formatter.Deserialize(instream), (uint)formatter.Deserialize(instream)); instream.Read(searchDump.mem, 0, (int)(searchDump.EndAddress - searchDump.StartAddress)); instream.Close(); instream.Dispose(); return searchDump; }