class documentation

class Symbol(object):

View In Hierarchy

A modelisation of a static symbol.

Warnings

Must not be directly constructed but retrieved through the following examples. Using an instance of Symbol directly constructed could lead to an AssertionError.

Examples

>>> # From a Transition
>>> transition.context_before().ossi.location().symbol
>>> transition.context_after().ossi.location().symbol
>>> # From a Context
>>> context.location().symbol
>>> # From a Binary
>>> for symbol in binary.symbols:
>>>     print(symbol)
'toto'
'tata'
Method __init__ Undocumented
Property rva Property: The relative virtual address (rva) inside the binary.
Property name Property: The name of the symbol.
Property binary Property: The binary in which the symbol have been declared.
Method __str__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Method __lt__ Undocumented
Method __le__ Undocumented
Method __gt__ Undocumented
Method __ge__ Undocumented
Instance Variable _datasource Undocumented
Instance Variable _binary_id Undocumented
Instance Variable _symbol Undocumented
def __init__(self, _datasource, _binary_id, _symbol):

Undocumented

_datasource =

Undocumented

_binary_id =

Undocumented

_symbol =

Undocumented

@property
rva =

Property: The relative virtual address (rva) inside the binary.

The rva is the offset from the base address of the binary loaded in memory.

Examples

>>> hex(symbol.rva)
'0x1445a0'

Information

ReturnsAn integer.
@property
name =

Property: The name of the symbol.

Examples

>>> symbol.name
'KiIsrLinkage'

Information

ReturnsA string.
@property
binary =

Property: The binary in which the symbol have been declared.

Examples

>>> print(symbol.binary)
'c:/windows/system32/ntoskrnl.exe'

Information

ReturnsA Binary.
def __str__(self):

Undocumented

def __repr__(self):

Undocumented

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

API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-04-06 08:01:12.