MCPcopy Create free account
hub / github.com/qilingframework/qiling / try_read_int

Function try_read_int

qiling/debugger/qdb/misc.py:58–67  ·  view source on GitHub ↗

Attempt to convert string to an integer value.

(s: str, /)

Source from the content-addressed store, hash-verified

56
57
58def try_read_int(s: str, /) -> Optional[int]:
59 """Attempt to convert string to an integer value.
60 """
61
62 try:
63 val = read_int(s)
64 except (ValueError, TypeError):
65 val = None
66
67 return val
68
69
70InsnLike = Union[CsInsn, InvalidInsn]

Callers 7

do_step_inMethod · 0.85
do_continueMethod · 0.85
do_breakpointMethod · 0.85
do_disassembleMethod · 0.85
do_jumpMethod · 0.85
do_markMethod · 0.85
__info_argsMethod · 0.85

Calls 1

read_intFunction · 0.85

Tested by

no test coverage detected