LoginSignup
0

More than 5 years have passed since last update.

elfsharp > private SectionHeader ReadSectionHeader(int index)

Last updated at Posted at 2015-08-21

http://qiita.com/7of9/items/7f9fe4f064e1e23c86ac
で使われている ReadSectionHeader()の実装

elfsharp/ELFSharp/ELF/ELF.cs

private SectionHeader ReadSectionHeader(int index)
        {
            if(index < 0 || index >= sectionHeaderEntryCount)
            {
                throw new ArgumentOutOfRangeException("index");
            }
            stream.Seek(
                sectionHeaderOffset + index*sectionHeaderEntrySize,
                SeekOrigin.Begin
            );
            using(var reader = localReaderSource())
            {
                return new SectionHeader(reader, Class, SectionsStringTable);
            }
        }

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