Shofel2_T124_python/venv/lib/python3.10/site-packages/capstone/evm.py

18 lines
366 B
Python
Raw Normal View History

2024-05-25 16:45:07 +00:00
# Capstone Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
import ctypes
from . import copy_ctypes_list
from .evm_const import *
# define the API
class CsEvm(ctypes.Structure):
_fields_ = (
('pop', ctypes.c_byte),
('push', ctypes.c_byte),
('fee', ctypes.c_uint),
)
def get_arch_info(a):
return (a.pop, a.push, a.fee)