class documentation

class _AbstractAddress(object):

Known subclasses: reven2.address.LinearAddress, reven2.address.LogicalAddress, reven2.address.LogicalAddressSegmentIndex, reven2.address.PhysicalAddress

View In Hierarchy

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.
_unique_count =

Undocumented

(type: int)
@classmethod
def _unique_id(cls):

Undocumented

@property
offset =

Property: The offset of the address.

Examples

>>> hex(address.PhysicalAddress(0xfffff800c99455b0L).offset)
'0xfffff800c99455b0L'
>>> hex(address.LinearAddress(0xfffff800c99455b0L).offset)
'0xfffff800c99455b0L'
>>> hex(address.LogicalAddress(0xfffff800c99455b0L).offset)
'0xfffff800c99455b0L'
>>> hex(address.LogicalAddressSegmentIndex(0xfffff800c99455b0L).offset)
'0xfffff800c99455b0L'

Information

ReturnsAn integer.
@_abc.abstractmethod
def _is_comparable(self, other):
def __eq__(self, other):

Undocumented

def __ne__(self, other):

Undocumented

def __lt__(self, other):

Undocumented

def __le__(self, other):

Undocumented

def __gt__(self, other):

Undocumented

def __ge__(self, other):

Undocumented

def __iadd__(self, other):

Undocumented

def __isub__(self, other):

Undocumented

def __add__(self, other):

Undocumented

def __sub__(self, other):

Undocumented

@staticmethod
def _unpack_segment_register(data):

Undocumented

@staticmethod
def _unpack(data, formatter=None):

Unpack a low level representation of an address to its high level representation.

def format_as_html(self):

This method gets an html formatting string representation for this class instance.

Information

ReturnsString
def _repr_html_(self):

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.

API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-10-01 07:17:11.