public Section(Elf32_Shdr header, byte[] data, LinkingView owner) { if (header != null) { this.header = header; } else { throw new ArgumentNullException("header"); } if (data != null) { this.data = data; } else { throw new ArgumentNullException("data"); } if (owner != null) { this.owner = owner; } else { throw new ArgumentNullException("owner"); } }
public StrTabSection(Elf32_Shdr hdr, byte[] data, LinkingView owner) : base(hdr, data, owner) { int stringStart = 0; for (int i = 0; i < Header.sh_size; i++) { if (Data[i] == 0) { offsets.Add(stringStart); stringStart = i + 1; } } }
public SymTabSection(Elf32_Shdr hdr, byte[] data, LinkingView owner) : base(hdr, data, owner) { }