An address space representing memory mapped files.

Method __init__ Initialize an instance from low-level address spaces. Not meant to be called directly.
Method base_address Property: The base address of the file address space.
Method name Property: The name of the file address space
Method segments Property: The contiguous regions the address space is composed of.
Method vma_to_rva Convert a virtual memory address (vma) to a relative virtual address (rva).
Method vma_from_rva Convert a relative virtual address (rva) to a virtual memory address (vma).
Method __repr__ Undocumented

Inherited from AddressSpace:

Class Segment Named contiguous part of memory.
Method contains Find out if an address is inside the address space.
def __init__(self, segments=None, name=''):

Initialize an instance from low-level address spaces. Not meant to be called directly.

Use methods such as ProcessAddressSpace.file_address_spaces or Binary.mappings instead.

ParameterssegmentsA list of AddressSpace.Segment instances.
nameName of the address space.
@property
def base_address(self):

Property: The base address of the file address space.

@property
def name(self):

Property: The name of the file address space

@property
def segments(self):

Property: The contiguous regions the address space is composed of.

ReturnsA list of Segment objects.
def vma_to_rva(self, vma):

Convert a virtual memory address (vma) to a relative virtual address (rva).

ParametersvmaThe virtual memory address to convert.
ReturnsThe relative virtual address, or None if the virtual memory address is not contained in the file's address space.
RaisesExceptionif the base address has not been initialized.
def vma_from_rva(self, rva):

Convert a relative virtual address (rva) to a virtual memory address (vma).

ParametersrvaThe relative virtual address to convert.
ReturnsThe virtual memory address, or None if the generated virtual memory address is not contained in the file's address space.
def __repr__(self):
Undocumented
API Documentation for reven, generated by pydoctor at 2018-06-06 16:31:21.