Crashpad
|
A MemorySnapshot of a memory region. More...
#include "snapshot/ios/memory_snapshot_ios.h"
Public Member Functions | |
void | Initialize (vm_address_t address, vm_size_t size) |
Initializes the object. More... | |
uint64_t | Address () const override |
The base address of the memory snapshot in the snapshot process’ address space. | |
size_t | Size () const override |
The size of the memory snapshot. | |
bool | Read (Delegate *delegate) const override |
Calls Delegate::MemorySnapshotDelegateRead(), providing it with the memory snapshot’s data. More... | |
const MemorySnapshot * | MergeWithOtherSnapshot (const MemorySnapshot *other) const override |
Creates a new MemorySnapshot based on merging this one with other. More... | |
Friends | |
template<class T > | |
const MemorySnapshot * | MergeWithOtherSnapshotImpl (const T *self, const MemorySnapshot *other) |
A MemorySnapshot of a memory region.
void crashpad::internal::MemorySnapshotIOS::Initialize | ( | vm_address_t | address, |
vm_size_t | size | ||
) |
Initializes the object.
[in] | address | The base address of the memory region to snapshot. |
[in] | size | The size of the memory region to snapshot. |
|
overridevirtual |
Creates a new MemorySnapshot based on merging this one with other.
The ranges described by the two snapshots must either overlap or abut, and must be of the same concrete type.
nullptr
with an error logged. Implements crashpad::MemorySnapshot.
|
overridevirtual |
Calls Delegate::MemorySnapshotDelegateRead(), providing it with the memory snapshot’s data.
Implementations do not necessarily read the memory snapshot data prior to this method being called. Memory snapshot data may be loaded lazily and may be discarded after being passed to the delegate. This provides clean memory management without burdening a snapshot implementation with the requirement that it track all memory region data simultaneously.
false
on failure, otherwise, the return value of Delegate::MemorySnapshotDelegateRead(), which should be true
on success and false
on failure. Implements crashpad::MemorySnapshot.