.
(self, offset, data)
| 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 | """.""" |
| 5973 | if offset > len(data): |
| 5974 | return b"" |
| 5975 | d = data[offset:] |
| 5976 | if isinstance(d, bytearray): |
| 5977 | return bytes(d) |
| 5978 | return d |
| 5979 | |
| 5980 | def get_string_from_data(self, offset, data): |
| 5981 | """Get an ASCII string from data.""" |
no outgoing calls
no test coverage detected