MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_string_from_data

Method get_string_from_data

pythonmemorymodule/pefile.py:5980–5986  ·  view source on GitHub ↗

Get an ASCII string from data.

(self, offset, data)

Source from the content-addressed store, hash-verified

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."""

Callers 2

get_string_at_rvaMethod · 0.95

Calls 2

get_bytes_from_dataMethod · 0.95
findMethod · 0.80

Tested by

no test coverage detected