public static Mem InitMem(String mFile, AMemoryRunDetector Detector, uint[] BitmapArray = null) //: this() { var thiz = new Mem(); thiz.StartOfMemory = Detector != null ? Detector.StartOfMem : 0; if (Detector != null) { thiz.StartOfMemory = Detector.StartOfMem; thiz.MD = Detector; } if (File.Exists(mFile)) { thiz.MemoryDump = mFile; thiz.FileSize = new FileInfo(mFile).Length; if (Detector != null) { thiz.MD = Detector; } } thiz.ID = new Guid(); thiz.DumpedPFNBitmap = new UnsafeHelp(thiz.ID.ToString(), thiz.MaxLimit, true); thiz.SetupStreams(); return(thiz); }
public static Mem InitMem(String mFile, AMemoryRunDetector Detector, uint[] BitmapArray = null) //: this() { var thiz = new Mem(); thiz.StartOfMemory = Detector != null ? Detector.StartOfMem : 0; if (Detector != null) { thiz.StartOfMemory = Detector.StartOfMem; thiz.MD = Detector; } #if USE_BITMAP // maybe there's a bit map we can use from a DMP file if (BitmapArray != null) { pfnTableIdx = new WAHBitArray(WAHBitArray.TYPE.Bitarray, BitmapArray); } else { pfnTableIdx = new WAHBitArray(); } // 32bit's of pages should be plenty? pfnTableIdx.Length = (int)(MapViewSize / 0x1000); #endif if (File.Exists(mFile)) { thiz.MemoryDump = mFile; thiz.FileSize = new FileInfo(mFile).Length; if (Detector != null) { thiz.MD = Detector; } } thiz.SetupStreams(); return(thiz); }
public static Mem InitMem(String mFile, AMemoryRunDetector Detector, uint[] BitmapArray = null) //: this() { var thiz = new Mem(); thiz.StartOfMemory = Detector != null ? Detector.StartOfMem : 0; if (Detector != null) { thiz.StartOfMemory = Detector.StartOfMem; thiz.MD = Detector; } #if USE_BITMAP // maybe there's a bit map we can use from a DMP file if (BitmapArray != null) pfnTableIdx = new WAHBitArray(WAHBitArray.TYPE.Bitarray, BitmapArray); else pfnTableIdx = new WAHBitArray(); // 32bit's of pages should be plenty? pfnTableIdx.Length = (int) (MapViewSize / 0x1000); #endif if (File.Exists(mFile)) { thiz.MemoryDump = mFile; thiz.FileSize = new FileInfo(mFile).Length; if (Detector != null) thiz.MD = Detector; } thiz.SetupStreams(); return thiz; }