private Section(ElfFile file, UInt32 index) { if (file == null) { throw new ArgumentNullException("file"); } this._file = file; this._index = index; }
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; }