MCPcopy Index your code
hub / github.com/ELMERIKH/PyinMemoryPE / b

Function b

pythonmemorymodule/pefile.py:720–726  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

718
719
720def b(x):
721 if isinstance(x, bytes):
722 return x
723 elif isinstance(x, bytearray):
724 return bytes(x)
725 else:
726 return codecs.encode(x, "cp1252")
727
728
729class AddressSet(set):

Callers 9

parse_stringsFunction · 0.85
__unpack__Method · 0.85
pefile.pyFile · 0.85
parse_importsMethod · 0.85
get_string_u_at_rvaMethod · 0.85
dump_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected