B2R2


FunctionMaintainer Type

Maintains functions in the binary.

Instance members

Instance member Description

this.AddFunction(func)

Full Usage: this.AddFunction(func)

Parameters:

Add a new regular function

func : RegularFunction

this.Contains(name)

Full Usage: this.Contains(name)

Parameters:
    name : string

Returns: bool

Check if there is a function with the given name.

name : string
Returns: bool

this.Contains(addr)

Full Usage: this.Contains(addr)

Parameters:
Returns: bool

Check if the given address belongs to a known function entry address.

addr : Addr
Returns: bool

this.Count

Full Usage: this.Count

Returns: int

The current number of functions.

Returns: int

this.Entries

Full Usage: this.Entries

Returns: seq<Addr>

Return the sequence of function entry addresses.

Returns: seq<Addr>

this.Find(name)

Full Usage: this.Find(name)

Parameters:
    name : string

Returns: Function

Obtain a function by the given function name.

name : string
Returns: Function

this.Find(addr)

Full Usage: this.Find(addr)

Parameters:
Returns: Function

Obtain a function by the given function entry address.

addr : Addr
Returns: Function

this.FindNextFunctionAddr(fn)

Full Usage: this.FindNextFunctionAddr(fn)

Parameters:
Returns: Addr

Return the next function address relative to the given function (fn).

fn : RegularFunction
Returns: Addr

this.FindRegular(addr)

Full Usage: this.FindRegular(addr)

Parameters:
Returns: RegularFunction

Obtain a regular function by the given function entry address.

addr : Addr
Returns: RegularFunction

this.Functions

Full Usage: this.Functions

Returns: seq<Function>

Return the sequence of functions.

Returns: seq<Function>

this.GetOrAddFunction(hdl, entry)

Full Usage: this.GetOrAddFunction(hdl, entry)

Parameters:
Returns: RegularFunction

Get a regular function at the entry. If the entry does not contain any function, create a new one and return it.

hdl : BinHandle
entry : Addr
Returns: RegularFunction

this.RegularFunctions

Full Usage: this.RegularFunctions

Returns: RegularFunction[]

Returns an array of regualr functions.

Returns: RegularFunction[]

this.RemoveFunction(addr)

Full Usage: this.RemoveFunction(addr)

Parameters:

Remove the given function.

addr : Addr

this.TryFind(name)

Full Usage: this.TryFind(name)

Parameters:
    name : string

Returns: Function option

Try to obtain a function by the given function name.

name : string
Returns: Function option

this.TryFind(addr)

Full Usage: this.TryFind(addr)

Parameters:
Returns: Function option

Try to obtain a function by the given function entry address.

addr : Addr
Returns: Function option

this.TryFindRegular(addr)

Full Usage: this.TryFindRegular(addr)

Parameters:
Returns: RegularFunction option

Obtain a regular function by the given function entry address.

addr : Addr
Returns: RegularFunction option

this.UpdateCallerCrossReferences()

Full Usage: this.UpdateCallerCrossReferences()

Update callers' cross references.

Static members

Static member Description

FunctionMaintainer.Init(hdl) (histMgr)

Full Usage: FunctionMaintainer.Init(hdl) (histMgr)

Parameters:
Returns: FunctionMaintainer
hdl : BinHandle
histMgr : HistoryManager
Returns: FunctionMaintainer