200 |
{ |
{ |
201 |
this.MapName = name; |
this.MapName = name; |
202 |
} |
} |
203 |
public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), string.Format("0x{0}", (end - start).ToString("X"))) { } |
public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), end-start) { } |
204 |
public MemMap(string name, string start, string end, string size) |
public MemMap(string name, string start, string end, ulong size) |
205 |
: this(name) |
: this(name) |
206 |
{ |
{ |
207 |
this.MapStart = start; |
this.MapStart = start; |
208 |
this.MapEnd = end; |
this.MapEnd = end; |
209 |
this.MapSize = size; |
this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0))); |
210 |
} |
} |
211 |
#region IMappedMemRange Members |
#region IMappedMemRange Members |
212 |
public string MapName { get; private set; } |
public string MapName { get; private set; } |