<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1test_1_1TestMemorySnapshot-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::test::TestMemorySnapshot Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>A test <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> that can carry arbitrary data for testing purposes.
<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,217,24"/>
<trclass="memdesc:ac52de4a7a927ac6d5feb13c2a398aa3a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the value to fill the test memory region with. <ahref="#ac52de4a7a927ac6d5feb13c2a398aa3a">More...</a><br/></td></tr>
<trclass="memdesc:a515bc4e6d55ae98fe90c169b40659be7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The base address of the memory snapshot in the snapshot process’ address space. <br/></td></tr>
<trclass="memdesc:a6af5648bca88c709a75c129f96893087"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The size of the memory snapshot. <br/></td></tr>
<trclass="memdesc:a89b8798372679d4aef3cf823b165d1d3"><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="#a89b8798372679d4aef3cf823b165d1d3">More...</a><br/></td></tr>
<divclass="textblock"><p>A test <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> that can carry arbitrary data for testing purposes. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<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>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value to be written to <em>delegate</em> when <aclass="el"href="classcrashpad_1_1test_1_1TestMemorySnapshot.html#a89b8798372679d4aef3cf823b165d1d3"title="Calls Delegate::MemorySnapshotDelegateRead(), providing it with the memory snapshot’s data...">Read()</a> is called. This value will be repeated <aclass="el"href="classcrashpad_1_1test_1_1TestMemorySnapshot.html#a6af5648bca88c709a75c129f96893087"title="The size of the memory snapshot. ">Size()</a> times. </td></tr>