(self, addr, length=0, kwargs=None)
return hook_decorator
Return a function decorator that allows easy hooking. Please refer to hook() for its usage.

        :return: The function decorator.
Return a function decorator that allows easy hooking. Please refer to hook() for its usage.
Return a function decorator that allows easy hooking . Please refer to hook () for its usage .
def _hook_decorator(self, addr, length=0, kwargs=None):
        """
        Return a function decorator that allows easy hooking. Please refer to hook() for its usage.

        :return: The function decorator.
        """

        def hook_decorator(func):
            self.hook(addr, func, length=length, kwargs=kwargs)
            return func

        return hook_decorator
def _hook_decorator ( self , addr , length = 0 , kwargs = None ) : def hook_decorator ( func ) : self . hook ( addr , func , length = length , kwargs = kwargs ) return func return hook_decorator