Get the section containing the given file offset.
(self, offset)
| 6029 | return b(s.encode("utf-8", "backslashreplace_")) |
| 6030 | |
| 6031 | def get_section_by_offset(self, offset): |
| 6032 | """Get the section containing the given file offset.""" |
| 6033 | |
| 6034 | for section in self.sections: |
| 6035 | if section.contains_offset(offset): |
| 6036 | return section |
| 6037 | |
| 6038 | return None |
| 6039 | |
| 6040 | def get_section_by_rva(self, rva): |
| 6041 | """Get the section containing the given address.""" |
no test coverage detected