Header menu logo B2R2

Addr Module

Provides a useful set of functions for handling Addr values.

Functions and values

Function or value Description

Addr.ofFuncName name

Full Usage: Addr.ofFuncName name

Parameters:
    name : string

Returns: uint64

Convert a function name used in B2R2 to an address (Addr). This function assumes that the given string follows our function naming convention.

name : string
Returns: uint64

Addr.toFuncName addr

Full Usage: Addr.toFuncName addr

Parameters:
Returns: string

Convert an address (Addr) to a function name, which starts with the func_ prefix. This is used to provide consistent names for functions when symbols are not available.

addr : Addr
Returns: string

Addr.toString wordSize addr

Full Usage: Addr.toString wordSize addr

Parameters:
Returns: string

Convert an address (Addr) of a given word size (WordSize) to a string.

wordSize : WordSize
addr : Addr
Returns: string

Type something to start searching.