コード例 #1
0
ファイル: Section.cs プロジェクト: DKorablin/ElfReader
        private Section(ElfFile file, UInt32 index)
        {
            if (file == null)
            {
                throw new ArgumentNullException("file");
            }

            this._file  = file;
            this._index = index;
        }
コード例 #2
0
ファイル: Section.cs プロジェクト: DKorablin/ElfReader
 internal Section(ElfFile file, UInt32 index, Elf.Elf64_Shdr section)
     : this(file, index)
 {
     this.sh_name      = section.sh_name;
     this.sh_type      = section.sh_type;
     this.sh_flags     = (Elf.SHF)section.sh_flags;
     this.sh_addr      = section.sh_addr;
     this.sh_offset    = section.sh_offset;
     this.sh_size      = section.sh_size;
     this.sh_link      = section.sh_link;
     this.sh_info      = section.sh_info;
     this.sh_addralign = section.sh_addralign;
     this.sh_entsize   = section.sh_entsize;
 }