MCPcopy
hub / github.com/keystone-engine/keypatch / to_hexstr

Function to_hexstr

keypatch.py:47–48  ·  view source on GitHub ↗
(buf, sep=' ')

Source from the content-addressed store, hash-verified

45
46
47def to_hexstr(buf, sep=' '):
48 return sep.join("{0:02x}".format(ord(c)) for c in buf).upper()
49
50# return a normalized code, or None if input is invalid
51def convert_hexstr(code):

Callers 3

ida_get_itemMethod · 0.85
patchMethod · 0.85
patch_codeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected