LoginSignup
0
0

More than 5 years have passed since last update.

elfsharp > ReadSectionHeader(int index)の構造 > SectionHeader() > ReadSectionHeader()

Last updated at Posted at 2015-08-21

elfsharp/ELFSharp/ELF/ELF.cs
にある private SectionHeader ReadSectionHeader(int index) の処理は

private SectionHeader ReadSectionHeader(int index) {
  Seek(...); // indexに基づく読み取り位置のシーク
  SectionHeader(...) : {
    this.reader = reader;
    this.table = table;
    this.elfClass = elfClass;
    ReadSectionHeader() : {
      NameIndex = reader.ReadUInt32();
      if(table != null)
      {       
      ...
      EntrySize = ReadAddress();      
    }  
  }
}

上記において SectionHeader() : { 処理A } という書き方は SectionHeader()という関数内で処理Aをしている、という意味とする[思いつきの独自表記です]。

混乱を生じたのは ReadSectionHeader(index)の2つ下層の処理にて同じ名前のReadSectionHeader()という引数なしの関数で処理していることだった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0