当前位置: 首页>>代码示例>>Python>>正文


Python debug.b方法代码示例

本文整理汇总了Python中volatility.debug.b方法的典型用法代码示例。如果您正苦于以下问题:Python debug.b方法的具体用法?Python debug.b怎么用?Python debug.b使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在volatility.debug的用法示例。


在下文中一共展示了debug.b方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from volatility import debug [as 别名]
# 或者: from volatility.debug import b [as 别名]
def __init__(self, theType, offset, vm, parent = None,
                 count = 1, targetType = None, target = None, name = None, **kwargs):
        ## Instantiate the first object on the offset:
        BaseObject.__init__(self, theType, offset, vm,
                            parent = parent, name = name, **kwargs)

        if callable(count):
            count = count(parent)

        self.count = int(count)

        self.original_offset = offset
        if targetType:
            self.target = Curry(Object, targetType)
        else:
            self.target = target

        self.current = self.target(offset = offset, vm = vm, parent = self, name = name)
        if self.current.size() == 0:
            ## It is an error to have a zero sized element
            debug.debug("Array with 0 sized members???", level = 10)
            debug.b() 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:24,代码来源:obj.py

示例2: check_addr

# 需要导入模块: from volatility import debug [as 别名]
# 或者: from volatility.debug import b [as 别名]
def check_addr(self, found):
        """ This calls all our constraints on the offset found and
        returns the number of contraints that matched.

        We shortcut the loop as soon as its obvious that there will
        not be sufficient matches to fit the criteria. This allows for
        an early exit and a speed boost.
        """
        cnt = 0
        for check in self.constraints:
            ## constraints can raise for an error
            try:
                val = check.check(found)
            except Exception:
                debug.b()
                val = False

            if not val:
                cnt = cnt + 1

            if cnt > self.error_count:
                return False

        return True 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:26,代码来源:scan.py


注:本文中的volatility.debug.b方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。