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 | _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. |
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.