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

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

#include "util/ios/scoped_vm_read.h"

Public Member Functions

 ScopedVMReadInternal (const ScopedVMReadInternal &)=delete
 
ScopedVMReadInternaloperator= (const ScopedVMReadInternal &)=delete
 
bool Read (const void *data, size_t data_length)
 Releases any previously read data and vm_reads data. Logs an error on failure.
 
vm_address_t data () const
 

Detailed Description

Non-templated internal class to be used by ScopedVMRead.

Note: RUNS-DURING-CRASH.

Member Function Documentation

◆ Read()

bool crashpad::internal::ScopedVMReadInternal::Read ( const void * data,
size_t data_length )

Releases any previously read data and vm_reads data. Logs an error on failure.

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

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