Get an ASCII string from data.
(self, offset, data)
| 5978 | return d |
| 5979 | |
| 5980 | def get_string_from_data(self, offset, data): |
| 5981 | """Get an ASCII string from data.""" |
| 5982 | s = self.get_bytes_from_data(offset, data) |
| 5983 | end = s.find(b"\0") |
| 5984 | if end >= 0: |
| 5985 | s = s[:end] |
| 5986 | return s |
| 5987 | |
| 5988 | def get_string_u_at_rva(self, rva, max_length=2**16, encoding=None): |
| 5989 | """Get an Unicode string located at the given address.""" |
no test coverage detected