Crashpad
 
Loading...
Searching...
No Matches
crashpad::internal::ScopedVMMapInternal Class Reference

Non-templated internal class to be used by ScopedVMMap. More...

#include "util/ios/scoped_vm_map.h"

Public Member Functions

 ScopedVMMapInternal (const ScopedVMMapInternal &)=delete
 
ScopedVMMapInternaloperator= (const ScopedVMMapInternal &)=delete
 
bool Map (const void *data, size_t data_length)
 Releases any previously mapped data and vm_remaps data. Logs an error on failure.
 
vm_prot_t CurrentProtection () const
 Returns the current protection for the memory in the region.
 
vm_address_t data () const
 

Detailed Description

Non-templated internal class to be used by ScopedVMMap.

Note: RUNS-DURING-CRASH.

Member Function Documentation

◆ Map()

bool crashpad::internal::ScopedVMMapInternal::Map ( const void * data,
size_t data_length )

Releases any previously mapped data and vm_remaps data. Logs an error on failure.

Parameters
[in]dataMemory to be mapped by vm_remap.
[in]data_lengthLength of data.
Returns
true if all the data was mapped. Logs an error and returns false on failure.

The documentation for this class was generated from the following files: