コード例 #1
0
 public SectionViewModel(ObjectFile.ImageSection imageSection)
 {
     _imageSection = imageSection;
     _name = NativeUtils.GetString(_imageSection.Header.Name);
     _byteData.Data = _imageSection.RawData;
     _byteData.StartingAddress = _imageSection.RawOffset;
 }
コード例 #2
0
        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);
                }
            }
        }