Get an ASCII string located at the given address.
(self, rva, max_length=MAX_STRING_LENGTH)
| 5958 | return s.get_offset_from_rva(rva) |
| 5959 | |
| 5960 | def get_string_at_rva(self, rva, max_length=MAX_STRING_LENGTH): |
| 5961 | """Get an ASCII string located at the given address.""" |
| 5962 | |
| 5963 | if rva is None: |
| 5964 | return None |
| 5965 | |
| 5966 | s = self.get_section_by_rva(rva) |
| 5967 | if not s: |
| 5968 | return self.get_string_from_data(0, self.__data__[rva : rva + max_length]) |
| 5969 | return self.get_string_from_data(0, s.get_data(rva, length=max_length)) |
| 5970 | |
| 5971 | def get_bytes_from_data(self, offset, data): |
| 5972 | """.""" |
no test coverage detected