Documentation ¶
Overview ¶
Copyright (C) 2022 K2 Cyber Security Inc.
Copyright (C) 2022 K2 Cyber Security Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDoubleHook means already hooked ErrDoubleHook = errors.New("double hook") // ErrHookNotFound means the hook not found ErrHookNotFound = errors.New("hook not found") // ErrDifferentType means from and to are of different types ErrDifferentType = errors.New("inputs are of different type") // ErrInputType means inputs are not func type ErrInputType = errors.New("inputs are not func type") // ErrRelativeAddr means cannot call the origin function ErrRelativeAddr = errors.New("relative address in instruction") )
Functions ¶
func ApplyWrap ¶
func ApplyWrap(from, to, toc interface{}) (*hook, error)
ApplyWrap is used to apply hooks on package public function
func ApplyWrapInterface ¶
func ApplyWrapInterface(from, to, toc interface{}) (*hook, error)
HookWrapInterface is used to apply hooks on instance function
func ApplyWrapRaw ¶
ApplyWrapRaw is used to apply hooks on instance function
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.