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