breakpoint.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:specto 作者: mrknow 项目源码 文件源码
def _cast_signature_pointers_to_void(self, signature):
        c_void_p  = ctypes.c_void_p
        c_char_p  = ctypes.c_char_p
        c_wchar_p = ctypes.c_wchar_p
        _Pointer  = ctypes._Pointer
        cast      = ctypes.cast
        for i in compat.xrange(len(signature)):
            t = signature[i]
            if t is not c_void_p and (issubclass(t, _Pointer) \
                                            or t in [c_char_p, c_wchar_p]):
                signature[i] = cast(t, c_void_p)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号