Crashpad
Public Member Functions | List of all members
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

void * Pointer () const
 Returns the address of the read-write page. More...
 

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: