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