<ahref="#pub-methods">Public Member Functions</a>|
<ahref="#pro-methods">Protected Member Functions</a>|
<ahref="classcrashpad_1_1MinidumpUnloadedModuleWriter-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::MinidumpUnloadedModuleWriter Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>The writer for a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> object in a minidump file.
<areahref="classcrashpad_1_1internal_1_1MinidumpWritable.html"title="The base class for all content that might be written to a minidump file. "alt="crashpad::internal::MinidumpWritable"shape="rect"coords="0,0,254,24"/>
<trclass="memdesc:a1c7b9d63c556f274da24bc03d9b42401"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes the <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> based on <em>unloaded_module_snapshot</em>. <ahref="#a1c7b9d63c556f274da24bc03d9b42401">More...</a><br/></td></tr>
<trclass="memdesc:a985b1014115cf10bf99a1cfae75595f9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> referencing this object’s data. <ahref="#a985b1014115cf10bf99a1cfae75595f9">More...</a><br/></td></tr>
<trclass="memdesc:a5bf1aa1815c7d12585ee21d663ed0d95"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Arranges for <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#af053b8df443ed30eb5b2e72747ed41e8"title="RVA of a MINIDUMP_STRING containing the module’s path or file name. ">MINIDUMP_UNLOADED_MODULE::ModuleNameRva</a> to point to a <aclass="el"href="structMINIDUMP__STRING.html"title="A variable-length UTF-16-encoded string carried within a minidump file. ">MINIDUMP_STRING</a> containing <em>name</em>. <ahref="#a5bf1aa1815c7d12585ee21d663ed0d95">More...</a><br/></td></tr>
<trclass="memdesc:a876dd4b17f11e31f3f3f86b69b67fb79"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#a57d74355789f2f6e363aafb60c53c6f4"title="The base address where the module was loaded in the address space of the process that the minidump fi...">MINIDUMP_UNLOADED_MODULE::BaseOfImage</a>. <br/></td></tr>
<trclass="memdesc:af985cc4a357eaf623b88109e65e6817d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#ac7eb861dbef77e2df5432f3ee199860c"title="The size of the unloaded module. ">MINIDUMP_UNLOADED_MODULE::SizeOfImage</a>. <br/></td></tr>
<trclass="memdesc:a45bd0d0bb206295d06b31c63a4c1f078"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#a3bcd1d1a409227a8d88c3892043b32b2"title="The module’s checksum, or 0 if unknown. ">MINIDUMP_UNLOADED_MODULE::CheckSum</a>. <br/></td></tr>
<trclass="memdesc:a4a3f9935a2f4f72a121dcc7ba895af3c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#a969c37c5f756548425178e98e57d3a9d"title="The module’s timestamp, in time_t units, seconds since the POSIX epoch, or 0 if unknown. ">MINIDUMP_UNLOADED_MODULE::TimeDateStamp</a>. <ahref="#a4a3f9935a2f4f72a121dcc7ba895af3c">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html">crashpad::internal::MinidumpWritable</a></td></tr>
<trclass="memdesc:a24507e918299cb566c7f15207de83a7f inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an object and all of its children to a minidump file. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a24507e918299cb566c7f15207de83a7f">More...</a><br/></td></tr>
<trclass="memdesc:a686683d78f099a07e2a1df8e6b567d37 inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Registers a file offset pointer as one that should point to the object on which this method is called. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a686683d78f099a07e2a1df8e6b567d37">More...</a><br/></td></tr>
<trclass="memdesc:aed263c64ecb0597696d080e395af6400 inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Registers a location descriptor as one that should point to the object on which this method is called. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#aed263c64ecb0597696d080e395af6400">More...</a><br/></td></tr>
<trclass="memdesc:a05698ba441130dbb9f1a4edba20b1b45"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Transitions the object from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a>. <ahref="#a05698ba441130dbb9f1a4edba20b1b45">More...</a><br/></td></tr>
<trclass="memdesc:a226d0de9279c2d108ecb8a01e2793e98"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment. <ahref="#a226d0de9279c2d108ecb8a01e2793e98">More...</a><br/></td></tr>
<trclass="memdesc:affc33e04d24271a027fe61ede6661c8b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the object’s children. <ahref="#affc33e04d24271a027fe61ede6661c8b">More...</a><br/></td></tr>
<trclass="memdesc:a81dd3bd393ea61456393df0bed6e5571"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes the object’s content. <ahref="#a81dd3bd393ea61456393df0bed6e5571">More...</a><br/></td></tr>
<trclass="inherit_header pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html">crashpad::internal::MinidumpWritable</a></td></tr>
<trclass="memdesc:aed27972114564f99cda1e7648aec807a inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The state of the object. <br/></td></tr>
<trclass="memdesc:a8439e05e21ccb78a4d61cd6e817d3bf5 inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Prepares the object to be written at a known file offset, transitioning it from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a8439e05e21ccb78a4d61cd6e817d3bf5">More...</a><br/></td></tr>
<trclass="memdesc:a2416cb821816b769d95b92e486713ebf inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called once an object’s writable file offset is determined, as it transitions into <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a2416cb821816b769d95b92e486713ebf">More...</a><br/></td></tr>
<trclass="memdesc:ab82b1e92ae0eced8b8e2efe957411773 inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes the object, transitioning it from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af0d794ed29c320fcf35c71f40cc6a510"title="The object has been written to a minidump file. ">kStateWritten</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ab82b1e92ae0eced8b8e2efe957411773">More...</a><br/></td></tr>
<trclass="inherit_header pro_types_classcrashpad_1_1internal_1_1MinidumpWritable"><tdcolspan="2"onclick="javascript:toggleInherit('pro_types_classcrashpad_1_1internal_1_1MinidumpWritable')"><imgsrc="closed.png"alt="-"/> Protected Types inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html">crashpad::internal::MinidumpWritable</a></td></tr>
<trclass="memitem:ac14e05f291f5fa713b5ec82a208fa7c7 inherit pro_types_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7">State</a><trclass="memdesc:ac14e05f291f5fa713b5ec82a208fa7c7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Identifies the state of an object. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7">More...</a><br/></td></tr>
<trclass="memitem:a009f007265d64a5fb416848480a00ae9 inherit pro_types_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a009f007265d64a5fb416848480a00ae9">Phase</a><trclass="memdesc:a009f007265d64a5fb416848480a00ae9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Identifies the phase during which an object will be written to a minidump file. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a009f007265d64a5fb416848480a00ae9">More...</a><br/></td></tr>
<trclass="memdesc:ae7c01f317a519213ac16bfeca94125d1 inherit pro_static_attribs_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A size value used to signal failure by methods that return <code>size_t</code>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ae7c01f317a519213ac16bfeca94125d1">More...</a><br/></td></tr>
<divclass="textblock"><p>The writer for a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> object in a minidump file. </p>
<p>Because <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> objects only appear as elements of <aclass="el"href="structMINIDUMP__UNLOADED__MODULE__LIST.html"title="Information about all modules recorded as unloaded when the snapshot was taken. ">MINIDUMP_UNLOADED_MODULE_LIST</a> objects, this class does not write any data on its own. It makes its <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> data available to its <aclass="el"href="classcrashpad_1_1MinidumpUnloadedModuleListWriter.html"title="The writer for a MINIDUMP_UNLOADED_MODULE_LIST stream in a minidump file, containing a list of MINIDU...">MinidumpUnloadedModuleListWriter</a> parent, which writes it as part of a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE__LIST.html"title="Information about all modules recorded as unloaded when the snapshot was taken. ">MINIDUMP_UNLOADED_MODULE_LIST</a>. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> or any subsequent state. </dd></dl>
<p>Reimplemented from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a32460b7fe2154fbabc3c58bf10dc7861">crashpad::internal::MinidumpWritable</a>.</p>
<p>Transitions the object from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a>. </p>
<p>The default implementation marks the object as frozen and recursively calls <aclass="el"href="classcrashpad_1_1MinidumpUnloadedModuleWriter.html#a05698ba441130dbb9f1a4edba20b1b45"title="Transitions the object from kStateMutable to kStateFrozen. ">Freeze()</a> on all of its children. Subclasses may override this method to perform processing that should only be done once callers have finished populating an object with data. Typically, a subclass implementation would call <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a686683d78f099a07e2a1df8e6b567d37"title="Registers a file offset pointer as one that should point to the object on which this method is called...">RegisterRVA()</a> or <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#aed263c64ecb0597696d080e395af6400"title="Registers a location descriptor as one that should point to the object on which this method is called...">RegisterLocationDescriptor()</a> on other objects as appropriate, because at the time <aclass="el"href="classcrashpad_1_1MinidumpUnloadedModuleWriter.html#a05698ba441130dbb9f1a4edba20b1b45"title="Transitions the object from kStateMutable to kStateFrozen. ">Freeze()</a> runs, the in-memory locations of RVAs and location descriptors are known and will not change for the remaining duration of an object’s lifetime.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with an appropriate message logged. </dd></dl>
<p>Reimplemented from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a773db80946a99c6a3cc29c7d4dd77bd6">crashpad::internal::MinidumpWritable</a>.</p>
<p>Initializes the <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> based on <em>unloaded_module_snapshot</em>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">unloaded_module_snapshot</td><td>The unloaded module snapshot to use as source data.</td></tr>
</table>
</dd>
</dl>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a>. No mutator methods may be called before this method, and it is not normally necessary to call any mutator methods after this method. </dd></dl>
<p>Returns a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> referencing this object’s data. </p>
<p>This method is expected to be called by a <aclass="el"href="classcrashpad_1_1MinidumpUnloadedModuleListWriter.html"title="The writer for a MINIDUMP_UNLOADED_MODULE_LIST stream in a minidump file, containing a list of MINIDU...">MinidumpUnloadedModuleListWriter</a> in order to obtain a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> to include in its list.</p>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. </dd></dl>
<p>Arranges for <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#af053b8df443ed30eb5b2e72747ed41e8"title="RVA of a MINIDUMP_STRING containing the module’s path or file name. ">MINIDUMP_UNLOADED_MODULE::ModuleNameRva</a> to point to a <aclass="el"href="structMINIDUMP__STRING.html"title="A variable-length UTF-16-encoded string carried within a minidump file. ">MINIDUMP_STRING</a> containing <em>name</em>. </p>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a>. </dd></dl>
<p>Sets <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html#a969c37c5f756548425178e98e57d3a9d"title="The module’s timestamp, in time_t units, seconds since the POSIX epoch, or 0 if unknown. ">MINIDUMP_UNLOADED_MODULE::TimeDateStamp</a>. </p>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a>. </dd></dl>
<p>Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment. </p>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> or any subsequent state. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file_writer</td><td>The file writer to receive the object’s content.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on error, indicating that the content could not be written to the minidump file.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. The object will transition to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af0d794ed29c320fcf35c71f40cc6a510"title="The object has been written to a minidump file. ">kStateWritten</a> after this method returns. </dd></dl>