class MemorySnapshot

Defined at line 29 of file ../../third_party/crashpad/src/snapshot/memory_snapshot.h

An abstract interface to a snapshot representing a region of memory

present in a snapshot process.

Public Methods

uint64_t Address ()

The base address of the memory snapshot in the snapshot process’

address space.

size_t Size ()

The size of the memory snapshot.

bool Read (Delegate * delegate)

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.

Returns

`false` on failure, otherwise, the return value of

Delegate::MemorySnapshotDelegateRead(), which should be `true` on

success and `false` on failure.

const MemorySnapshot * MergeWithOtherSnapshot (const MemorySnapshot * other)

Creates a new MemorySnapshot based on merging this one with

The ranges described by the two snapshots must either overlap or abut, and

must be of the same concrete type.

Returns

A newly allocated MemorySnapshot representing the merged range, or

`nullptr` with an error logged.

void ~MemorySnapshot ()

Defined at line 55 of file ../../third_party/crashpad/src/snapshot/memory_snapshot.h

Records