MCPcopy Create free account
hub / github.com/Vector35/debugger / pyNativeStr

Function pyNativeStr

api/python/_debuggercore_template.py:53–57  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

51 return var.encode("utf-8")
52
53def pyNativeStr(arg):
54 if isinstance(arg, str):
55 return arg
56 else:
57 return arg.decode('utf8')
58
59def free_string(value:ctypes.c_char_p) -> None:
60 BNDebuggerFreeString(ctypes.cast(value, ctypes.POINTER(ctypes.c_byte)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected