reven.api.FileAddressSpace(AddressSpace) class documentationreven.api
(View In Hierarchy)
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. |
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.
| Parameters | segments | A list of AddressSpace.Segment
instances. |
| name | Name of the address space. |
Property: The contiguous regions the address space is composed of.
| Returns | A list of Segment
objects. | |
Convert a virtual memory address (vma) to a relative virtual address (rva).
| Parameters | vma | The virtual memory address to convert. |
| Returns | The relative virtual address, or None if the virtual memory address is not contained in the file's address space. | |
| Raises | Exception | if the base address has not been initialized. |