class documentation

class PhysicalAddress(_AbstractAddress):

View In Hierarchy

Representation of a physical address.

Examples

>>> addr = address.PhysicalAddress(0xfffff800c99455b0L)
>>> hex(addr.offset)
'0xfffff800c99455b0L'
>>> print(addr)
phy:0xfffff800c99455b0
Method __init__ Initializes a PhysicalAddress from an offset.
Method __repr__ Undocumented
Method __str__ Undocumented
Instance Variable _offset Undocumented
Method _pack Pack a PhysicalAddress to its high level representation.
Method _is_comparable Whether two address objects are comparable or not.

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
Static Method _unpack_segment_register Undocumented
Static Method _unpack Unpack a low level representation of an address to its high level representation.
def __init__(self, offset):

Initializes a PhysicalAddress from an offset.

Examples

>>> print(address.PhysicalAddress(0x10))
phy:0x10
>>> print(address.PhysicalAddress(256))
phy:0x100
>>> print(address.PhysicalAddress(0xfffff800c99455b0L))
phy:0xfffff800c99455b0

Information

ParametersoffsetThe offset of the physical address. (type: integer)
RaisesTypeErrorif `offset` is not an integer.
ValueErrorif `offset` can not be converted to an integer.
_offset =

Undocumented

def _pack(self):

Pack a PhysicalAddress to its high level representation.

Returnsreven_api.PhysicalAddress
def _is_comparable(self, other):

Whether two address objects are comparable or not.

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-07-01 16:43:49.