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

Method get_string_at_rva

pythonmemorymodule/pefile.py:5960–5969  ·  view source on GitHub ↗

Get an ASCII string located at the given address.

(self, rva, max_length=MAX_STRING_LENGTH)

Source from the content-addressed store, hash-verified

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

Callers 5

parse_importsMethod · 0.95
dump_infoMethod · 0.95

Calls 3

get_section_by_rvaMethod · 0.95
get_string_from_dataMethod · 0.95
get_dataMethod · 0.45

Tested by

no test coverage detected