interaction module¶
Class |
Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AddressField¶
- class AddressField[source]¶
Bases:
object
AddressField
prompts the user for an address. By passing the optional view and current_address parameters offsets can be used instead of just an address. The result is stored as in int in self.result.Note
This API currently functions differently on the command-line, as the view and current_address are disregarded. Additionally where as in the UI the result defaults to hexadecimal on the command-line 0x must be specified.
- __init__(prompt: str, view: BinaryView | None = None, current_address: int = 0, default: int | None = None)[source]¶
- Parameters:
prompt (str) –
view (BinaryView | None) –
current_address (int) –
default (int | None) –
- property current_address¶
current address to use as a base for relative calculations
- property prompt¶
prompt to be presented to the user
- property result¶
- property view¶
BinaryView for the address