|
libintrovirt v0.57.4
IntroVirt introspection library
|
A mapping of guest memory. More...
#include <GuestMemoryMapping.hh>
Public Member Functions | |
| void * | get () |
| Get the raw memory mapping. | |
| const void * | get () const |
| Get the raw memory mapping. | |
| unsigned int | length () const |
| Returns the number of bytes that are mapped. | |
| GuestMemoryMapping () | |
| Construct a "null" GuestMemoryMapping. | |
| GuestMemoryMapping (void *mapping, unsigned int length) | |
| Construct a GuestMemoryMapping. | |
| GuestMemoryMapping (const GuestMemoryMapping &)=delete | |
| Copy constructor. | |
| GuestMemoryMapping & | operator= (const GuestMemoryMapping &)=delete |
| Copy assignment operator. | |
| GuestMemoryMapping (GuestMemoryMapping &&) noexcept | |
| Move constructor. | |
| GuestMemoryMapping & | operator= (GuestMemoryMapping &&) noexcept HOT |
| Move assignment operator. | |
| ~GuestMemoryMapping () HOT | |
| Destroy the instance The memory will be unmapped. | |
A mapping of guest memory.
A wrapper class to hold a mapping of guest memory. Generally you would use a guest_ptr instead of directly using this class.
Keep in mind that since we have to map entire pages of memory, you will have to offset into the buffer returned by get().
|
inline |
Construct a "null" GuestMemoryMapping.
|
inline |
Construct a GuestMemoryMapping.
| mapping | The mapped guest memory |
| length | The number of bytes that have been mapped |
|
delete |
Copy constructor.
|
noexcept |
Move constructor.
| introvirt::GuestMemoryMapping::~GuestMemoryMapping | ( | ) |
Destroy the instance The memory will be unmapped.
|
inline |
Get the raw memory mapping.
|
inline |
Get the raw memory mapping.
|
inline |
Returns the number of bytes that are mapped.
|
delete |
Copy assignment operator.
|
noexcept |
Move assignment operator.