|
ReXGlue SDK
|
#include <rex/memory/mapped_ptr.h>
Public Member Functions | |
| MappedPtr ()=default | |
| MappedPtr (void *host_ptr, u32 guest_addr) | |
| MappedPtr (std::nullptr_t) | |
| u32 | GetGuestAddress () const |
| u32 | GetValue () const |
| void * | GetHostPtr () const |
| operator void * () const | |
| operator u8 * () const | |
| operator bool () const | |
| operator u32 () const | |
| template<std::integral IntType> | |
| MappedPtr | operator+ (IntType offset) const |
| template<std::integral IntType> | |
| MappedPtr | operator- (IntType offset) const |
| template<typename U> | |
| U | As () const |
| template<typename U> | |
| rex::BE< U > * | AsArray () const |
| void | Zero (size_t size) const |
| operator void * () const | |
| void * | operator-> () const |
| void & | operator* () const |
Static Public Member Functions | |
| static MappedPtr | FromHost (void *host_ptr) |
Untyped MappedPtr. Offsets count bytes.
|
default |
Null pointer at guest address 0.
|
inline |
Null pointer at guest address 0.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
| IntType | The integral offset type. |
| offset | Bytes to advance. |
|
inline |
| IntType | The integral offset type. |
| offset | Bytes to move back. |
|
inline |
Zeroes bytes at the host pointer. Does nothing when it is null.