reven2.address._AbstractAddress(object) class documentationreven2.address
(View In Hierarchy)
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.
| Method | 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. | |
Whether two address objects are comparable or not.