class _AbstractAddress(object):
Known subclasses: reven2.address.LinearAddress
, reven2.address.LogicalAddress
, reven2.address.LogicalAddressSegmentIndex
, reven2.address.PhysicalAddress
The abstract class from which any address representation is derived.
It contains implementation of comparison operators and addition/substraction operators.
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 |
Method | _is_comparable |
Whether two address objects are comparable or not. |
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. |
Property: The offset of the address.
>>> hex(address.PhysicalAddress(0xfffff800c99455b0L).offset) '0xfffff800c99455b0L' >>> hex(address.LinearAddress(0xfffff800c99455b0L).offset) '0xfffff800c99455b0L' >>> hex(address.LogicalAddress(0xfffff800c99455b0L).offset) '0xfffff800c99455b0L' >>> hex(address.LogicalAddressSegmentIndex(0xfffff800c99455b0L).offset) '0xfffff800c99455b0L'
Returns | An integer . |
reven2.address.LinearAddress
, reven2.address.LogicalAddress
, reven2.address.LogicalAddressSegmentIndex
, reven2.address.PhysicalAddress
Whether two address objects are comparable or not.
Unpack a low level representation of an address to its high level representation.
This method gets an html formatting string representation for this class instance.
Returns | String |
Representation used by Jupyter Notebook when an instance of the address classes is displayed in a cell.
The address is returned as a clickable link containing the address string, that publishes the address to all tracked reven2.session.Sessions
.