Skip to content

Rose::StringUtility::addrToString

Convert a virtual address to a string.

Synopsis

Declared in <src/Rose/StringUtility/NumberToString.h>

[[visibility]]
std::string
addrToString(
    uint64_t value,
    size_t nbits = 0);

Description

Converts a virtual address to a hexadecimal string with a leading "0x". The string is zero‐padded so that it explicitly represents at least nbits bits (four bits per hexadecimal digits). If nbits is zero then the function uses 32 bits for values that fit in 32 bits, otherwise 64 bits.

Return Value

Formatted address string.

Parameters

Name

Description

value

Address value.

nbits

Minimum bit width to display.

Created with MrDocs