<ahref="#pub-methods">Public Member Functions</a>|
<ahref="#pub-static-attribs">Static Public Attributes</a>|
<ahref="classcrashpad_1_1internal_1_1MemorySnapshotSanitized-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::internal::MemorySnapshotSanitized Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>A <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> which wraps and filters sensitive information from another <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a>.
<areahref="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process..."alt="crashpad::MemorySnapshot"shape="rect"coords="0,0,268,24"/>
<trclass="memdesc:a629945556b61ec86658ff5cfdaf0925d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs this object. <ahref="#a629945556b61ec86658ff5cfdaf0925d">More...</a><br/></td></tr>
<trclass="memdesc:a12b2db1487cd9ed293bd3e9b97aa31b6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The base address of the memory snapshot in the snapshot process’ address space. <br/></td></tr>
<trclass="memdesc:a4a39cb820fb6b0c5e91c293914b5bfec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The size of the memory snapshot. <br/></td></tr>
<trclass="memdesc:a3d62b4b91128a491173e744b4a52ec3c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Calls <aclass="el"href="classcrashpad_1_1MemorySnapshot_1_1Delegate.html#a844f77076dc607ce0cd8946aea75f73b"title="Called by MemorySnapshot::Read() to provide data requested by a call to that method. ">Delegate::MemorySnapshotDelegateRead()</a>, providing it with the memory snapshot’s data. <ahref="#a3d62b4b91128a491173e744b4a52ec3c">More...</a><br/></td></tr>
<trclass="memdesc:a32c81927ea098f228cdfa495aeb1e08e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a new <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> based on merging this one with <em>other</em>. <ahref="#a32c81927ea098f228cdfa495aeb1e08e">More...</a><br/></td></tr>
<trclass="memdesc:a40f9f57a011ba532c928bf0134cdcadf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Redacted data is replaced with this value, casted to the appropriate size for a pointer in the target process. <br/></td></tr>
<trclass="memdesc:ab9a7f983221ad5783953d5731fa71f7c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Pointer-aligned data smaller than this value is not redacted. <br/></td></tr>
<divclass="textblock"><p>A <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> which wraps and filters sensitive information from another <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a>. </p>
<p>This class redacts all data from the wrapped <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> unless:</p><oltype="1">
<li>The data is pointer aligned and points into a whitelisted address range.</li>
<li>The data is pointer aligned and is a small integer. </li>
</ol>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">snapshot</td><td>The <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> to sanitize. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">ranges</td><td>A set of whitelisted address ranges. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">is_64_bit</td><td><code>true</code> if this memory is for a 64-bit process. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2class="groupheader">Member Function Documentation</h2>
<p>Creates a new <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> based on merging this one with <em>other</em>. </p>
<p>The ranges described by the two snapshots must either overlap or abut, and must be of the same concrete type.</p>
<dlclass="section return"><dt>Returns</dt><dd>A newly allocated <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> representing the merged range, or <code>nullptr</code> with an error logged. </dd></dl>
<p>Calls <aclass="el"href="classcrashpad_1_1MemorySnapshot_1_1Delegate.html#a844f77076dc607ce0cd8946aea75f73b"title="Called by MemorySnapshot::Read() to provide data requested by a call to that method. ">Delegate::MemorySnapshotDelegateRead()</a>, providing it with the memory snapshot’s data. </p>
<p>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.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>false</code> on failure, otherwise, the return value of <aclass="el"href="classcrashpad_1_1MemorySnapshot_1_1Delegate.html#a844f77076dc607ce0cd8946aea75f73b"title="Called by MemorySnapshot::Read() to provide data requested by a call to that method. ">Delegate::MemorySnapshotDelegateRead()</a>, which should be <code>true</code> on success and <code>false</code> on failure. </dd></dl>