public SectionViewModel(ObjectFile.ImageSection imageSection) { _imageSection = imageSection; _name = NativeUtils.GetString(_imageSection.Header.Name); _byteData.Data = _imageSection.RawData; _byteData.StartingAddress = _imageSection.RawOffset; }
public void ResolveName(ObjectFile file) { if (_name.StartsWith("/")) { long result = 0; if (long.TryParse(_name.Substring(1), out result)) { file.StringTable.TryGetValue(result, out _name); } if (_name.StartsWith("/")) { Debug.Write("Failed to resolve section {0}", _name); } } }