AddressValue object represents a memory address in the binary. It is used throughout VulHunt rules to reference specific locations in the binary, such as function addresses, call site addresses, and instruction addresses.
AddressValue supports arithmetic (+, -), comparison (==, <, <=), and conversion to string and BitVec.
Functions
| Function | Description | Parameters | Return Type |
|---|---|---|---|
new | Constructs a new AddressValue from an integer, string, BitVec, or another AddressValue | integer, string, BitVec or AddressValue | AddressValue |
from_integer | Creates an AddressValue from an unsigned 64-bit integer | number | AddressValue |
from_string | Parses an AddressValue from a hexadecimal string | string | AddressValue |
from_bitvec | Converts a BitVec to an AddressValue | BitVec | AddressValue |
Methods
Reference
new
Constructs a newAddressValue from an integer, string, BitVec, or another AddressValue.
from_integer
Creates anAddressValue from an unsigned 64-bit integer.
from_string
Parses anAddressValue from a hexadecimal string.
from_bitvec
Converts aBitVec to an AddressValue.
to_bitvec
Converts the address to aBitVec with specified bit size.