mirror of
https://github.com/bitdefender/bddisasm.git
synced 2025-07-01 04:42:35 +00:00
Remove duplicate nd_decode function
This commit is contained in:
parent
ad128fd72a
commit
2e69f12b88
@ -49,18 +49,6 @@ def nd_decode(code, arch_code_size, arch_data_size=0, rip=0):
|
|||||||
return NdInstruction(instruction)
|
return NdInstruction(instruction)
|
||||||
|
|
||||||
|
|
||||||
def nd_decode_ex(code, arch_code_size, arch_data_size=0, rip=0):
|
|
||||||
if not arch_data_size:
|
|
||||||
arch_data_size = arch_code_size
|
|
||||||
|
|
||||||
instruction = _pydis.nd_decode_ex(code, arch_code_size, arch_data_size, rip)
|
|
||||||
|
|
||||||
if not instruction:
|
|
||||||
return None
|
|
||||||
|
|
||||||
return NdInstruction(instruction)
|
|
||||||
|
|
||||||
|
|
||||||
def nd_decode_ex2(code, arch_code_size, arch_data_size, arch_stack_size, vendor, rip=0):
|
def nd_decode_ex2(code, arch_code_size, arch_data_size, arch_stack_size, vendor, rip=0):
|
||||||
instruction = _pydis.nd_decode_ex2(code, arch_code_size, arch_data_size,
|
instruction = _pydis.nd_decode_ex2(code, arch_code_size, arch_data_size,
|
||||||
arch_stack_size, vendor, rip)
|
arch_stack_size, vendor, rip)
|
||||||
|
Loading…
Reference in New Issue
Block a user