本文整理汇总了Python中dllretrace.DllRetracer.extractArg方法的典型用法代码示例。如果您正苦于以下问题:Python DllRetracer.extractArg方法的具体用法?Python DllRetracer.extractArg怎么用?Python DllRetracer.extractArg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dllretrace.DllRetracer
的用法示例。
在下文中一共展示了DllRetracer.extractArg方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: extractArg
# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import extractArg [as 别名]
def extractArg(self, function, arg, arg_type, lvalue, rvalue):
# Handle DDCREATE_* flags
if arg.type is DDCREATE_LPGUID:
print ' if (%s.toArray()) {' % rvalue
Retracer.extractArg(self, function, arg, arg_type, lvalue, rvalue)
print ' } else {'
print ' %s = static_cast<%s>(%s.toPointer());' % (lvalue, arg_type, rvalue)
print ' }'
return
Retracer.extractArg(self, function, arg, arg_type, lvalue, rvalue)
示例2: extractArg
# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import extractArg [as 别名]
def extractArg(self, function, arg, arg_type, lvalue, rvalue):
# Set object names
if function.name == 'SetPrivateData' and arg.name == 'pData':
iid = function.args[0].name
print r' if (%s != WKPDID_D3DDebugObjectName) {' % iid
print r' return;'
print r' }'
# Interpret argument as string
Retracer.extractArg(self, function, arg, LPCSTR, lvalue, rvalue)
print r' assert(pData);'
print r' assert(DataSize == strlen((const char *)pData));'
return
Retracer.extractArg(self, function, arg, arg_type, lvalue, rvalue)
示例3: extractArg
# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import extractArg [as 别名]
def extractArg(self, function, arg, arg_type, lvalue, rvalue):
# Set object names
if function.name == 'SetPrivateData' and arg.name == 'pData':
iid = function.args[0].name
print r' if (%s != WKPDID_D3DDebugObjectName) {' % iid
print r' return;'
print r' }'
# Interpret argument as string
Retracer.extractArg(self, function, arg, LPCSTR, lvalue, rvalue)
print r' if (!pData) {'
print r' return;'
print r' }'
print r' assert(DataSize >= strlen((const char *)pData));'
print r' // Some applications include the trailing zero terminator in the data'
print r' DataSize = strlen((const char *)pData);'
return
Retracer.extractArg(self, function, arg, arg_type, lvalue, rvalue)