You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Theodosius/doxygen/html/d9/dd5/classtheo_1_1decomp_1_1symb...

643 lines
47 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Theodosius: theo::decomp::symbol_t Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Theodosius
&#160;<span id="projectnumber">v3.0</span>
</div>
<div id="projectbrief">Jit linker, mapper, obfuscator, and mutator</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../da/de6/namespacetheo.html">theo</a></li><li class="navelem"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html">decomp</a></li><li class="navelem"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html">symbol_t</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="../../d7/d85/classtheo_1_1decomp_1_1symbol__t-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">theo::decomp::symbol_t Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html" title="symbol_t is an abstraction upon the coff symbol. this allows for easier manipulation of the symbol....">symbol_t</a> is an abstraction upon the coff symbol. this allows for easier manipulation of the symbol. symbols can be different things, sections, functions, and even instructions (when functions are broken down).
<a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="../../">symbol.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa7247dcb735176b6ed9246d035e7a215"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa7247dcb735176b6ed9246d035e7a215">symbol_t</a> (coff::image_t *<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>, std::string <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a7c6dee036291ded334aa10d89293fc2a">name</a>, std::uintptr_t <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79759d343ddb6a62e4149aef92e2d70b">offset</a>, std::vector&lt; std::uint8_t &gt; <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa3ecf0b480d10bffe68812409c06d61b">data</a>, coff::section_header_t *<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">scn</a>={}, coff::symbol_t *<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>={}, std::vector&lt; <a class="el" href="../../dd/d37/classtheo_1_1recomp_1_1reloc__t.html">recomp::reloc_t</a> &gt; <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#abc158e1dc1567161f0a57ed15fc718f7">relocs</a>={}, <a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a> dcmp_type={})</td></tr>
<tr class="memdesc:aa7247dcb735176b6ed9246d035e7a215"><td class="mdescLeft">&#160;</td><td class="mdescRight">the explicit constructor of this symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa7247dcb735176b6ed9246d035e7a215">More...</a><br /></td></tr>
<tr class="separator:aa7247dcb735176b6ed9246d035e7a215"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c6dee036291ded334aa10d89293fc2a"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a7c6dee036291ded334aa10d89293fc2a">name</a> () const</td></tr>
<tr class="memdesc:a7c6dee036291ded334aa10d89293fc2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the name of the symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a7c6dee036291ded334aa10d89293fc2a">More...</a><br /></td></tr>
<tr class="separator:a7c6dee036291ded334aa10d89293fc2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79759d343ddb6a62e4149aef92e2d70b"><td class="memItemLeft" align="right" valign="top">std::uintptr_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79759d343ddb6a62e4149aef92e2d70b">offset</a> () const</td></tr>
<tr class="memdesc:a79759d343ddb6a62e4149aef92e2d70b"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the offset into the section where the symbol is located. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79759d343ddb6a62e4149aef92e2d70b">More...</a><br /></td></tr>
<tr class="separator:a79759d343ddb6a62e4149aef92e2d70b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae92f3e35fba82a1d16a58ad09b39fb47"><td class="memItemLeft" align="right" valign="top">std::uintptr_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae92f3e35fba82a1d16a58ad09b39fb47">allocated_at</a> () const</td></tr>
<tr class="memdesc:ae92f3e35fba82a1d16a58ad09b39fb47"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the address where the symbol is allocated. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae92f3e35fba82a1d16a58ad09b39fb47">More...</a><br /></td></tr>
<tr class="separator:ae92f3e35fba82a1d16a58ad09b39fb47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33f1452b01fe80f9c384241b9fe6286"><td class="memItemLeft" align="right" valign="top">std::uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae33f1452b01fe80f9c384241b9fe6286">size</a> () const</td></tr>
<tr class="memdesc:ae33f1452b01fe80f9c384241b9fe6286"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the size of the symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae33f1452b01fe80f9c384241b9fe6286">More...</a><br /></td></tr>
<tr class="separator:ae33f1452b01fe80f9c384241b9fe6286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64d51dabe91687ed40c3942d106fd7dd"><td class="memItemLeft" align="right" valign="top">coff::section_header_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">scn</a> () const</td></tr>
<tr class="memdesc:a64d51dabe91687ed40c3942d106fd7dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the section header of the section in which the symbol is contained. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">More...</a><br /></td></tr>
<tr class="separator:a64d51dabe91687ed40c3942d106fd7dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad97ad0395e18dcfb42017fb7753e0665"><td class="memItemLeft" align="right" valign="top">coff::image_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a> () const</td></tr>
<tr class="memdesc:ad97ad0395e18dcfb42017fb7753e0665"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the imagine in which the symbol is located inside of. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">More...</a><br /></td></tr>
<tr class="separator:ad97ad0395e18dcfb42017fb7753e0665"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ecf0b480d10bffe68812409c06d61b"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::uint8_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa3ecf0b480d10bffe68812409c06d61b">data</a> ()</td></tr>
<tr class="memdesc:aa3ecf0b480d10bffe68812409c06d61b"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns a vector by reference of bytes containing the data of the symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa3ecf0b480d10bffe68812409c06d61b">More...</a><br /></td></tr>
<tr class="separator:aa3ecf0b480d10bffe68812409c06d61b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e6f850f25a51609fbe5dc0a61b27bc9"><td class="memItemLeft" align="right" valign="top">coff::symbol_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a> () const</td></tr>
<tr class="memdesc:a0e6f850f25a51609fbe5dc0a61b27bc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns a pointer to the coff symbol object. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">More...</a><br /></td></tr>
<tr class="separator:a0e6f850f25a51609fbe5dc0a61b27bc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16587cddd37cd45d9ec6cd25c229e8d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a16587cddd37cd45d9ec6cd25c229e8d1">type</a> () const</td></tr>
<tr class="memdesc:a16587cddd37cd45d9ec6cd25c229e8d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the type of the symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a16587cddd37cd45d9ec6cd25c229e8d1">More...</a><br /></td></tr>
<tr class="separator:a16587cddd37cd45d9ec6cd25c229e8d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc158e1dc1567161f0a57ed15fc718f7"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="../../dd/d37/classtheo_1_1recomp_1_1reloc__t.html">recomp::reloc_t</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#abc158e1dc1567161f0a57ed15fc718f7">relocs</a> ()</td></tr>
<tr class="memdesc:abc158e1dc1567161f0a57ed15fc718f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns a vector of relocations. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#abc158e1dc1567161f0a57ed15fc718f7">More...</a><br /></td></tr>
<tr class="separator:abc158e1dc1567161f0a57ed15fc718f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79bec0c7338f2c08739ea6547745cc3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79bec0c7338f2c08739ea6547745cc3b">allocated_at</a> (std::uintptr_t allocated_at)</td></tr>
<tr class="memdesc:a79bec0c7338f2c08739ea6547745cc3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the address where the symbol is allocated at. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79bec0c7338f2c08739ea6547745cc3b">More...</a><br /></td></tr>
<tr class="separator:a79bec0c7338f2c08739ea6547745cc3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8695d75670cc4d61d275464e9109ff06"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a8695d75670cc4d61d275464e9109ff06">hash</a> ()</td></tr>
<tr class="memdesc:a8695d75670cc4d61d275464e9109ff06"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the hash of the symbol name. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a8695d75670cc4d61d275464e9109ff06">More...</a><br /></td></tr>
<tr class="separator:a8695d75670cc4d61d275464e9109ff06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a88481ad95d28f9c54c349f0e43de8970"><td class="memItemLeft" align="right" valign="top">static std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a88481ad95d28f9c54c349f0e43de8970">hash</a> (const std::string &amp;<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>)</td></tr>
<tr class="memdesc:a88481ad95d28f9c54c349f0e43de8970"><td class="mdescLeft">&#160;</td><td class="mdescRight">generate a hash given the name of the symbol. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a88481ad95d28f9c54c349f0e43de8970">More...</a><br /></td></tr>
<tr class="separator:a88481ad95d28f9c54c349f0e43de8970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bef3a0869fee4979918405c5ed8f692"><td class="memItemLeft" align="right" valign="top">static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a2bef3a0869fee4979918405c5ed8f692">name</a> (const coff::image_t *<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>, coff::symbol_t *<a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>)</td></tr>
<tr class="memdesc:a2bef3a0869fee4979918405c5ed8f692"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the name of a symbol. this function will create a symbol name if the symbol is opaquely named. <a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a2bef3a0869fee4979918405c5ed8f692">More...</a><br /></td></tr>
<tr class="separator:a2bef3a0869fee4979918405c5ed8f692"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html" title="symbol_t is an abstraction upon the coff symbol. this allows for easier manipulation of the symbol....">symbol_t</a> is an abstraction upon the coff symbol. this allows for easier manipulation of the symbol. symbols can be different things, sections, functions, and even instructions (when functions are broken down). </p>
<p>this class is used throughout theodosius and is a keystone of the project. ensure you understand how this class works and what it contains.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa7247dcb735176b6ed9246d035e7a215"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7247dcb735176b6ed9246d035e7a215">&#9670;&nbsp;</a></span>symbol_t()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">theo::decomp::symbol_t::symbol_t </td>
<td>(</td>
<td class="paramtype">coff::image_t *&#160;</td>
<td class="paramname"><em>img</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uintptr_t&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; std::uint8_t &gt;&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">coff::section_header_t *&#160;</td>
<td class="paramname"><em>scn</em> = <code>{}</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">coff::symbol_t *&#160;</td>
<td class="paramname"><em>sym</em> = <code>{}</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; <a class="el" href="../../dd/d37/classtheo_1_1recomp_1_1reloc__t.html">recomp::reloc_t</a> &gt;&#160;</td>
<td class="paramname"><em>relocs</em> = <code>{}</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a>&#160;</td>
<td class="paramname"><em>dcmp_type</em> = <code>{}</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>the explicit constructor of this symbol. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>the image in which the symbol is located in.</td></tr>
<tr><td class="paramname">name</td><td>the name of the symbol.</td></tr>
<tr><td class="paramname">offset</td><td>offset into the section where this symbol is located.</td></tr>
<tr><td class="paramname">data</td><td>the data of the symbol. there can be no data.</td></tr>
<tr><td class="paramname">scn</td><td>the section header describing the section which contains the symbol.</td></tr>
<tr><td class="paramname">sym</td><td>the coff symbol itself.</td></tr>
<tr><td class="paramname">relocs</td><td>a vector of relocations this symbol has (if any).</td></tr>
<tr><td class="paramname">dcmp_type</td><td>the type of symbol</td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; : m_name(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a7c6dee036291ded334aa10d89293fc2a">name</a>),</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; m_offset(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79759d343ddb6a62e4149aef92e2d70b">offset</a>),</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; m_data(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa3ecf0b480d10bffe68812409c06d61b">data</a>),</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; m_scn(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">scn</a>),</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; m_relocs(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#abc158e1dc1567161f0a57ed15fc718f7">relocs</a>),</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; m_sym_type(dcmp_type),</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; m_sym(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>),</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; m_img(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>),</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; m_allocated_at(0) {}</div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_a0e6f850f25a51609fbe5dc0a61b27bc9"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">theo::decomp::symbol_t::sym</a></div><div class="ttdeci">coff::symbol_t * sym() const</div><div class="ttdoc">returns a pointer to the coff symbol object.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:92</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_a64d51dabe91687ed40c3942d106fd7dd"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">theo::decomp::symbol_t::scn</a></div><div class="ttdeci">coff::section_header_t * scn() const</div><div class="ttdoc">gets the section header of the section in which the symbol is contained.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:64</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_a79759d343ddb6a62e4149aef92e2d70b"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a79759d343ddb6a62e4149aef92e2d70b">theo::decomp::symbol_t::offset</a></div><div class="ttdeci">std::uintptr_t offset() const</div><div class="ttdoc">gets the offset into the section where the symbol is located.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:56</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_a7c6dee036291ded334aa10d89293fc2a"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a7c6dee036291ded334aa10d89293fc2a">theo::decomp::symbol_t::name</a></div><div class="ttdeci">std::string name() const</div><div class="ttdoc">gets the name of the symbol.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:52</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_aa3ecf0b480d10bffe68812409c06d61b"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#aa3ecf0b480d10bffe68812409c06d61b">theo::decomp::symbol_t::data</a></div><div class="ttdeci">std::vector&lt; std::uint8_t &gt; &amp; data()</div><div class="ttdoc">returns a vector by reference of bytes containing the data of the symbol.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:76</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_abc158e1dc1567161f0a57ed15fc718f7"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#abc158e1dc1567161f0a57ed15fc718f7">theo::decomp::symbol_t::relocs</a></div><div class="ttdeci">std::vector&lt; recomp::reloc_t &gt; &amp; relocs()</div><div class="ttdoc">returns a vector of relocations.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:96</div></div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_ad97ad0395e18dcfb42017fb7753e0665"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">theo::decomp::symbol_t::img</a></div><div class="ttdeci">coff::image_t * img() const</div><div class="ttdoc">gets the imagine in which the symbol is located inside of.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:68</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae92f3e35fba82a1d16a58ad09b39fb47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae92f3e35fba82a1d16a58ad09b39fb47">&#9670;&nbsp;</a></span>allocated_at() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::uintptr_t theo::decomp::symbol_t::allocated_at </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the address where the symbol is allocated. </p>
<dl class="section return"><dt>Returns</dt><dd>the address where the symbol is allocated.</dd></dl>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> m_allocated_at;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a79bec0c7338f2c08739ea6547745cc3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79bec0c7338f2c08739ea6547745cc3b">&#9670;&nbsp;</a></span>allocated_at() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void theo::decomp::symbol_t::allocated_at </td>
<td>(</td>
<td class="paramtype">std::uintptr_t&#160;</td>
<td class="paramname"><em>allocated_at</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>set the address where the symbol is allocated at. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">allocated_at</td><td>where the symbol is allocated at.</td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; m_allocated_at = <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae92f3e35fba82a1d16a58ad09b39fb47">allocated_at</a>;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;}</div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_ae92f3e35fba82a1d16a58ad09b39fb47"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ae92f3e35fba82a1d16a58ad09b39fb47">theo::decomp::symbol_t::allocated_at</a></div><div class="ttdeci">std::uintptr_t allocated_at() const</div><div class="ttdoc">returns the address where the symbol is allocated.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:60</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa3ecf0b480d10bffe68812409c06d61b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3ecf0b480d10bffe68812409c06d61b">&#9670;&nbsp;</a></span>data()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; std::uint8_t &gt; &amp; theo::decomp::symbol_t::data </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>returns a vector by reference of bytes containing the data of the symbol. </p>
<dl class="section return"><dt>Returns</dt><dd>a vector by reference of bytes containing the data of the symbol.</dd></dl>
<div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">return</span> m_data;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a8695d75670cc4d61d275464e9109ff06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8695d75670cc4d61d275464e9109ff06">&#9670;&nbsp;</a></span>hash() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::size_t theo::decomp::symbol_t::hash </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the hash of the symbol name. </p>
<dl class="section return"><dt>Returns</dt><dd>the hash of the symbol name.</dd></dl>
<div class="fragment"><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">return</span> <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a8695d75670cc4d61d275464e9109ff06">hash</a>(m_name);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;}</div>
<div class="ttc" id="aclasstheo_1_1decomp_1_1symbol__t_html_a8695d75670cc4d61d275464e9109ff06"><div class="ttname"><a href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a8695d75670cc4d61d275464e9109ff06">theo::decomp::symbol_t::hash</a></div><div class="ttdeci">std::size_t hash()</div><div class="ttdoc">gets the hash of the symbol name.</div><div class="ttdef"><b>Definition:</b> symbol.cpp:88</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a88481ad95d28f9c54c349f0e43de8970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88481ad95d28f9c54c349f0e43de8970">&#9670;&nbsp;</a></span>hash() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::size_t theo::decomp::symbol_t::hash </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>sym</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>generate a hash given the name of the symbol. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">sym</td><td>the symbol name to create a hash from.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the symbol name hash</dd></dl>
<div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> std::hash&lt;std::string&gt;{}(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ad97ad0395e18dcfb42017fb7753e0665"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad97ad0395e18dcfb42017fb7753e0665">&#9670;&nbsp;</a></span>img()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">coff::image_t * theo::decomp::symbol_t::img </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the imagine in which the symbol is located inside of. </p>
<dl class="section return"><dt>Returns</dt><dd>the imagine in which the symbol is located inside of.</dd></dl>
<div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">return</span> m_img;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a7c6dee036291ded334aa10d89293fc2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c6dee036291ded334aa10d89293fc2a">&#9670;&nbsp;</a></span>name() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string theo::decomp::symbol_t::name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the name of the symbol. </p>
<dl class="section return"><dt>Returns</dt><dd>the name of the symbol.</dd></dl>
<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">return</span> m_name;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2bef3a0869fee4979918405c5ed8f692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bef3a0869fee4979918405c5ed8f692">&#9670;&nbsp;</a></span>name() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string theo::decomp::symbol_t::name </td>
<td>(</td>
<td class="paramtype">const coff::image_t *&#160;</td>
<td class="paramname"><em>img</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">coff::symbol_t *&#160;</td>
<td class="paramname"><em>sym</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>get the name of a symbol. this function will create a symbol name if the symbol is opaquely named. </p>
<p>for example in c++ if you define something like this:</p>
<p>some_struct_t val = { value_one, value_two };</p>
<p>"val" will be stored in the .data section of the coff file. however the symbol name will be opaque (the name of the symbol will be ".data"). this causes issues with theo since each symbol needs its own unqiue name to generate a unique symbol name hash. for symbols like this, theo will create a name for it with the following format:</p>
<p>.data::section_index!coff_file_timestamp+offset_into_section</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>the coff file containing the symbol.</td></tr>
<tr><td class="paramname">sym</td><td>the coff symbol itself.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the name of the symbol, or a created one.</dd></dl>
<div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;has_section() &amp;&amp;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;storage_class == coff::storage_class_id::private_symbol &amp;&amp;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;derived_type == coff::derived_type_id::none) {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">auto</span> <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">scn</a> = <a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>-&gt;get_section(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;section_index - 1);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">auto</span> res = std::string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a64d51dabe91687ed40c3942d106fd7dd">scn</a>-&gt;name.to_string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>-&gt;get_strings()).data())</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; .append(<span class="stringliteral">&quot;#&quot;</span>)</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; .append(std::to_string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;section_index))</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; .append(<span class="stringliteral">&quot;!&quot;</span>)</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; .append(std::to_string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>-&gt;file_header.timedate_stamp))</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; .append(<span class="stringliteral">&quot;+&quot;</span>)</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; .append(std::to_string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;value));</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">return</span> std::string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#a0e6f850f25a51609fbe5dc0a61b27bc9">sym</a>-&gt;name.to_string(<a class="code" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html#ad97ad0395e18dcfb42017fb7753e0665">img</a>-&gt;get_strings()));</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a79759d343ddb6a62e4149aef92e2d70b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79759d343ddb6a62e4149aef92e2d70b">&#9670;&nbsp;</a></span>offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::uintptr_t theo::decomp::symbol_t::offset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the offset into the section where the symbol is located. </p>
<dl class="section return"><dt>Returns</dt><dd>the offset into the section where the symbol is located.</dd></dl>
<div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> m_offset;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="abc158e1dc1567161f0a57ed15fc718f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc158e1dc1567161f0a57ed15fc718f7">&#9670;&nbsp;</a></span>relocs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; <a class="el" href="../../dd/d37/classtheo_1_1recomp_1_1reloc__t.html">recomp::reloc_t</a> &gt; &amp; theo::decomp::symbol_t::relocs </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>returns a vector of relocations. </p>
<dl class="section return"><dt>Returns</dt><dd>a vector of relocations.</dd></dl>
<div class="fragment"><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> m_relocs;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a64d51dabe91687ed40c3942d106fd7dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64d51dabe91687ed40c3942d106fd7dd">&#9670;&nbsp;</a></span>scn()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">coff::section_header_t * theo::decomp::symbol_t::scn </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the section header of the section in which the symbol is contained. </p>
<dl class="section return"><dt>Returns</dt><dd>the section header of the section in which the symbol is contained.</dd></dl>
<div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> m_scn;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ae33f1452b01fe80f9c384241b9fe6286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae33f1452b01fe80f9c384241b9fe6286">&#9670;&nbsp;</a></span>size()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::uint32_t theo::decomp::symbol_t::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the size of the symbol. </p>
<dl class="section return"><dt>Returns</dt><dd>the size of the symbol.</dd></dl>
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; {</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">return</span> m_data.size();</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a0e6f850f25a51609fbe5dc0a61b27bc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e6f850f25a51609fbe5dc0a61b27bc9">&#9670;&nbsp;</a></span>sym()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">coff::symbol_t * theo::decomp::symbol_t::sym </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>returns a pointer to the coff symbol object. </p>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the coff symbol object.</dd></dl>
<div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">return</span> m_sym;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a16587cddd37cd45d9ec6cd25c229e8d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16587cddd37cd45d9ec6cd25c229e8d1">&#9670;&nbsp;</a></span>type()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a> theo::decomp::symbol_t::type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>returns the type of the symbol. </p>
<dl class="section return"><dt>Returns</dt><dd>the type of the symbol.</dd></dl>
<div class="fragment"><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> m_sym_type;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/decomp/<a class="el" href="../../">symbol.hpp</a></li>
<li>src/decomp/<a class="el" href="../../">symbol.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>