Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
crashpad::test::ScopedGuardedPage Class Reference

A RAII object that allocates a read-write page with an inacessible page following it. More...

#include "test/scoped_guarded_page.h"

Public Member Functions

 ScopedGuardedPage (const ScopedGuardedPage &)=delete
 
ScopedGuardedPageoperator= (const ScopedGuardedPage &)=delete
 
void * Pointer () const
 Returns the address of the read-write page.
 

Detailed Description

A RAII object that allocates a read-write page with an inacessible page following it.

Upon construction, a mapping will be created. Failure to create the mapping is fatal. On destruction, the mapping is freed.

This object should not be used in multi-threded contexts, the POSIX implementation can not be made thread-safe.

Member Function Documentation

◆ Pointer()

void * crashpad::test::ScopedGuardedPage::Pointer ( ) const
inline

Returns the address of the read-write page.

Returns
The address of the read-write page.

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