class LinearAddress(_AbstractAddress):
Representation of a linear address.
>>> addr = address.LinearAddress(0xfffff800c99455b0L) >>> hex(addr.offset) '0xfffff800c99455b0L' >>> print(addr) lin:0xfffff800c99455b0
Method | __init__ |
Initializes a LinearAddress from an offset. |
Method | translate |
Translates this virtual address to a physical address, if it is mapped at the specified context. |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Instance Variable | _offset |
Undocumented |
Instance Variable | _formatter |
Undocumented |
Method | _pack |
Pack a LinearAddress to its high level representation (reven_api.VirtualAddress ). |
Method | _is_comparable |
Whether two address objects are comparable or not. |
Method | _address_data |
Undocumented |
Inherited from _AbstractAddress
:
Property | offset |
Property: The offset of the address. |
Method | __eq__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __lt__ |
Undocumented |
Method | __le__ |
Undocumented |
Method | __gt__ |
Undocumented |
Method | __ge__ |
Undocumented |
Method | __iadd__ |
Undocumented |
Method | __isub__ |
Undocumented |
Method | __add__ |
Undocumented |
Method | __sub__ |
Undocumented |
Method | format_as_html |
This method gets an html formatting string representation for this class instance. |
Class Variable | _unique_count |
Undocumented |
Class Method | _unique_id |
Undocumented |
Static Method | _unpack_segment_register |
Undocumented |
Static Method | _unpack |
Unpack a low level representation of an address to its high level representation. |
Method | _repr_html_ |
Representation used by Jupyter Notebook when an instance of the address classes is displayed in a cell. |
Initializes a LinearAddress
from an offset.
>>> print(address.LinearAddress(0x10)) lin:0x10 >>> print(address.LinearAddress(256)) lin:0x100 >>> print(address.LinearAddress(0xfffff800c99455b0L)) lin:0xfffff800c99455b0
Parameters | offset | The offset of the linear address. (type: integer ) |
formatter | The formatter for this address (type: Formatter ) | |
Raises | TypeError | if `offset` is not an integer . |
ValueError | if `offset` can not be converted to an integer . |
Translates this virtual address to a physical address, if it is mapped at the specified context.
Parameters | context | The reven2.trace.Context at which the translation should be attempted |
Returns | A PhysicalAddress if the current virtual address is mapped at the specified context, otherwise None |