#include <rex/memory/mapped_ptr.h>
|
|
constexpr | GuestMembase (u8 *base) noexcept |
| constexpr u8 * | GetBase () const noexcept |
| template<typename T = u8*> |
| T | TranslateVirtual (u32 guest_address) const noexcept |
| u32 | HostToGuestVirtual (const void *host_address) const noexcept |
The host base of guest memory, which translates between guest virtual and host addresses.
◆ GetBase()
| u8 * rex::memory::GuestMembase::GetBase |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
- Returns
- The base, null for a default constructed value.
◆ HostToGuestVirtual()
| u32 rex::memory::GuestMembase::HostToGuestVirtual |
( |
const void * | host_address | ) |
const |
|
inlinenodiscardnoexcept |
Translates a host pointer into guest virtual memory back to its guest address.
- Parameters
-
| host_address | The host pointer, null for no address. |
- Returns
- The guest virtual address, 0 for a null pointer.
◆ TranslateVirtual()
template<typename T = u8*>
| T rex::memory::GuestMembase::TranslateVirtual |
( |
u32 | guest_address | ) |
const |
|
inlinenodiscardnoexcept |
Translates a guest virtual address to a host pointer.
The documentation for this class was generated from the following file: