Files
rippled/SHAMapTreeNode_8cpp_source.html
2021-09-14 16:34:03 +00:00

311 lines
51 KiB
HTML

<!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.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: SHAMapTreeNode.cpp Source File</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">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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');
/* @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="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_380eda8174f5eb060d37b8b034a94866.html">shamap</a></li><li class="navelem"><a class="el" href="dir_105cccbbf432365df53e381b580b4a54.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SHAMapTreeNode.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/Log.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/Slice.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/contract.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/safe_cast.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/core/LexicalCast.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/HashPrefix.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/digest.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapAccountStateLeafNode.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapInnerNode.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapLeafNode.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapTreeNode.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapTxLeafNode.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;ripple/shamap/SHAMapTxPlusMetaLeafNode.h&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &lt;openssl/sha.h&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMapTreeNode&gt;</a></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a86766049429f10a7a04bca455542313e"> 40</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#a86766049429f10a7a04bca455542313e">SHAMapTreeNode::makeTransaction</a>(</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">bool</span> hashValid)</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">auto</span> item = std::make_shared&lt;SHAMapItem const&gt;(</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="namespaceripple.html#ae3f5bc352766a1a8dbf5270eb7dbc2e7">sha512Half</a>(<a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4">HashPrefix::transactionID</a>, data), data);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">if</span> (hashValid)</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapTxLeafNode&gt;(std::move(item), 0, hash);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapTxLeafNode&gt;(std::move(item), 0);</div>
<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; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMapTreeNode&gt;</a></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011"> 55</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011">SHAMapTreeNode::makeTransactionWithMeta</a>(</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">bool</span> hashValid)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s(data.data(), data.size());</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> tag;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">if</span> (s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>() &lt; tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>)</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;Short TXN+MD node&quot;</span>);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">// FIXME: improve this interface so that the above check isn&#39;t needed</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">if</span> (!s.<a class="code" href="classripple_1_1Serializer.html#a2a89965bbb918a1aee8a34034e4d82f7">getBitString</a>(tag, s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>() - tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>))</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; Throw&lt;std::out_of_range&gt;(</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="stringliteral">&quot;Short TXN+MD node (&quot;</span> + <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>()) + <span class="stringliteral">&quot;)&quot;</span>);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; s.<a class="code" href="classripple_1_1Serializer.html#a9db24b0bbf4bd3651ac9a3648d83b961">chop</a>(tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">auto</span> item = std::make_shared&lt;SHAMapItem const&gt;(tag, s.<a class="code" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>());</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> (hashValid)</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapTxPlusMetaLeafNode&gt;(</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; std::move(item), 0, hash);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapTxPlusMetaLeafNode&gt;(std::move(item), 0);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;}</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMapTreeNode&gt;</a></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f"> 84</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f">SHAMapTreeNode::makeAccountState</a>(</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">bool</span> hashValid)</div>
<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; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s(data.data(), data.size());</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> tag;</div>
<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">if</span> (s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>() &lt; tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>)</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;short AS node&quot;</span>);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="comment">// FIXME: improve this interface so that the above check isn&#39;t needed</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">if</span> (!s.<a class="code" href="classripple_1_1Serializer.html#a2a89965bbb918a1aee8a34034e4d82f7">getBitString</a>(tag, s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>() - tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>))</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; Throw&lt;std::out_of_range&gt;(</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="stringliteral">&quot;Short AS node (&quot;</span> + <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(s.<a class="code" href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">size</a>()) + <span class="stringliteral">&quot;)&quot;</span>);</div>
<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; s.<a class="code" href="classripple_1_1Serializer.html#a9db24b0bbf4bd3651ac9a3648d83b961">chop</a>(tag.<a class="code" href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">bytes</a>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">if</span> (tag.<a class="code" href="classripple_1_1base__uint.html#a6fd7dba1ad932f4c1246c9a090c145e5">isZero</a>())</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;Invalid AS node&quot;</span>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keyword">auto</span> item = std::make_shared&lt;SHAMapItem const&gt;(tag, s.<a class="code" href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">slice</a>());</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">if</span> (hashValid)</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapAccountStateLeafNode&gt;(</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; std::move(item), 0, hash);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> std::make_shared&lt;SHAMapAccountStateLeafNode&gt;(std::move(item), 0);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;}</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMapTreeNode&gt;</a></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57"> 116</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57">SHAMapTreeNode::makeFromWire</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> rawNode)</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;{</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">if</span> (rawNode.<a class="code" href="classripple_1_1Slice.html#a38d951bc2f27aaf89c3fdb5914c7e169">empty</a>())</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> type = rawNode[rawNode.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>() - 1];</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; rawNode.<a class="code" href="classripple_1_1Slice.html#a4e8d0e9da187938baa8fd4f3e7051867">remove_suffix</a>(1);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">bool</span> <span class="keyword">const</span> hashValid = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span> hash;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#a358175eb11ec25bda82f8bfc46077581">wireTypeTransaction</a>)</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a86766049429f10a7a04bca455542313e">makeTransaction</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#a2431568230bc455a272a4d23cf1020f8">wireTypeAccountState</a>)</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f">makeAccountState</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ae4966411bf110181aa1b1ef4a2d8c690">wireTypeInner</a>)</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapInnerNode.html#ad1efe48ac7bf6f3b4a10ad9c26573bec">SHAMapInnerNode::makeFullInner</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ac329442511917ee4fb295996041263e9">wireTypeCompressedInner</a>)</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapInnerNode.html#a7c00b72186bf55aad286505bb5cedc00">SHAMapInnerNode::makeCompressedInner</a>(rawNode);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ae4ab9a7d71bae5a1e2bdb826e737474d">wireTypeTransactionWithMeta</a>)</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011">makeTransactionWithMeta</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="stringliteral">&quot;wire: Unknown type (&quot;</span> + <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(type) + <span class="stringliteral">&quot;)&quot;</span>);</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;}</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SHAMapTreeNode&gt;</a></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a5631e2f77123e3b73229ef4c890ad60f"> 148</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#a5631e2f77123e3b73229ef4c890ad60f">SHAMapTreeNode::makeFromPrefix</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> rawNode, <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>&amp; hash)</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;{</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">if</span> (rawNode.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>() &lt; 4)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;prefix: short node&quot;</span>);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="comment">// FIXME: Use SerialIter::get32?</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="comment">// Extract the prefix</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> type = safe_cast&lt;HashPrefix&gt;(</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; (safe_cast&lt;std::uint32_t&gt;(rawNode[0]) &lt;&lt; 24) +</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; (safe_cast&lt;std::uint32_t&gt;(rawNode[1]) &lt;&lt; 16) +</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; (safe_cast&lt;std::uint32_t&gt;(rawNode[2]) &lt;&lt; 8) +</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; (safe_cast&lt;std::uint32_t&gt;(rawNode[3])));</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; rawNode.<a class="code" href="classripple_1_1Slice.html#a60d6d55a9111d4eb9173875a4af505a8">remove_prefix</a>(4);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keywordtype">bool</span> <span class="keyword">const</span> hashValid = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4">HashPrefix::transactionID</a>)</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a86766049429f10a7a04bca455542313e">makeTransaction</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda0ec8825bcd36b1d9a4651f1fc088254b">HashPrefix::leafNode</a>)</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f">makeAccountState</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bdad9a09590da318a86ba2bd64b374c2d77">HashPrefix::innerNode</a>)</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapInnerNode.html#ad1efe48ac7bf6f3b4a10ad9c26573bec">SHAMapInnerNode::makeFullInner</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">HashPrefix::txNode</a>)</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011">makeTransactionWithMeta</a>(rawNode, hash, hashValid);</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="stringliteral">&quot;prefix: unknown type (&quot;</span> +</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(<a class="code" href="namespaceripple.html#a6f30ee31f9359c69a5294921d5c10d0b">safe_cast</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t&lt;HashPrefix&gt;</a>&gt;(type)) +</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="stringliteral">&quot;)&quot;</span>);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;}</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d"> 184</a></span>&#160;<a class="code" href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d">SHAMapTreeNode::getString</a>(<span class="keyword">const</span> <a class="code" href="classripple_1_1SHAMapNodeID.html">SHAMapNodeID</a>&amp; <span class="keywordtype">id</span>)<span class="keyword"> const</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;}</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1Slice_html_aa6faa586508e0f849d4591d807353825"><div class="ttname"><a href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">ripple::Slice::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdoc">Returns the number of bytes in the storage.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00079">Slice.h:79</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a9db24b0bbf4bd3651ac9a3648d83b961"><div class="ttname"><a href="classripple_1_1Serializer.html#a9db24b0bbf4bd3651ac9a3648d83b961">ripple::Serializer::chop</a></div><div class="ttdeci">bool chop(int num)</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8cpp_source.html#l00184">Serializer.cpp:184</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_html_ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf"><div class="ttname"><a href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">ripple::HashPrefix::txNode</a></div><div class="ttdeci">@ txNode</div><div class="ttdoc">transaction plus metadata</div></div>
<div class="ttc" id="aclassripple_1_1Slice_html"><div class="ttname"><a href="classripple_1_1Slice.html">ripple::Slice</a></div><div class="ttdoc">An immutable linear range of bytes.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00044">Slice.h:44</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapInnerNode_html_ad1efe48ac7bf6f3b4a10ad9c26573bec"><div class="ttname"><a href="classripple_1_1SHAMapInnerNode.html#ad1efe48ac7bf6f3b4a10ad9c26573bec">ripple::SHAMapInnerNode::makeFullInner</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeFullInner(Slice data, SHAMapHash const &amp;hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapInnerNode_8cpp_source.html#l00130">SHAMapInnerNode.cpp:130</a></div></div>
<div class="ttc" id="anamespaceripple_html_a358175eb11ec25bda82f8bfc46077581"><div class="ttname"><a href="namespaceripple.html#a358175eb11ec25bda82f8bfc46077581">ripple::wireTypeTransaction</a></div><div class="ttdeci">static constexpr unsigned const char wireTypeTransaction</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00039">SHAMapTreeNode.h:39</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae4966411bf110181aa1b1ef4a2d8c690"><div class="ttname"><a href="namespaceripple.html#ae4966411bf110181aa1b1ef4a2d8c690">ripple::wireTypeInner</a></div><div class="ttdeci">static constexpr unsigned const char wireTypeInner</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00041">SHAMapTreeNode.h:41</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_ae1b494609b7a732614554da92e235f57"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57">ripple::SHAMapTreeNode::makeFromWire</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeFromWire(Slice rawNode)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00116">SHAMapTreeNode.cpp:116</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapNodeID_html"><div class="ttname"><a href="classripple_1_1SHAMapNodeID.html">ripple::SHAMapNodeID</a></div><div class="ttdoc">Identifies a node inside a SHAMap.</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapNodeID_8h_source.html#l00033">SHAMapNodeID.h:33</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a2dbee3cfa72319c01b649f4c255a5a9d"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d">ripple::SHAMapTreeNode::getString</a></div><div class="ttdeci">virtual std::string getString(SHAMapNodeID const &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00184">SHAMapTreeNode.cpp:184</a></div></div>
<div class="ttc" id="aclassripple_1_1Slice_html_a38d951bc2f27aaf89c3fdb5914c7e169"><div class="ttname"><a href="classripple_1_1Slice.html#a38d951bc2f27aaf89c3fdb5914c7e169">ripple::Slice::empty</a></div><div class="ttdeci">bool empty() const noexcept</div><div class="ttdoc">Return true if the byte range is empty.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00068">Slice.h:68</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapHash_html"><div class="ttname"><a href="classripple_1_1SHAMapHash.html">ripple::SHAMapHash</a></div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00048">SHAMapTreeNode.h:48</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae4ab9a7d71bae5a1e2bdb826e737474d"><div class="ttname"><a href="namespaceripple.html#ae4ab9a7d71bae5a1e2bdb826e737474d">ripple::wireTypeTransactionWithMeta</a></div><div class="ttdeci">static constexpr unsigned const char wireTypeTransactionWithMeta</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00043">SHAMapTreeNode.h:43</a></div></div>
<div class="ttc" id="aunderlying_type_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t</a></div></div>
<div class="ttc" id="anamespaceripple_html_a2431568230bc455a272a4d23cf1020f8"><div class="ttname"><a href="namespaceripple.html#a2431568230bc455a272a4d23cf1020f8">ripple::wireTypeAccountState</a></div><div class="ttdeci">static constexpr unsigned const char wireTypeAccountState</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00040">SHAMapTreeNode.h:40</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a86766049429f10a7a04bca455542313e"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a86766049429f10a7a04bca455542313e">ripple::SHAMapTreeNode::makeTransaction</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeTransaction(Slice data, SHAMapHash const &amp;hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00040">SHAMapTreeNode.cpp:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad5143ceada01141772ae4aab984f94bdad9a09590da318a86ba2bd64b374c2d77"><div class="ttname"><a href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bdad9a09590da318a86ba2bd64b374c2d77">ripple::HashPrefix::innerNode</a></div><div class="ttdeci">@ innerNode</div><div class="ttdoc">inner node in V1 tree</div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html_a4b9e8d36a37963d48be8f081d99257bf"><div class="ttname"><a href="classripple_1_1base__uint.html#a4b9e8d36a37963d48be8f081d99257bf">ripple::base_uint::bytes</a></div><div class="ttdeci">static constexpr std::size_t bytes</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00098">base_uint.h:98</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html_a6fd7dba1ad932f4c1246c9a090c145e5"><div class="ttname"><a href="classripple_1_1base__uint.html#a6fd7dba1ad932f4c1246c9a090c145e5">ripple::base_uint::isZero</a></div><div class="ttdeci">bool isZero() const</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00511">base_uint.h:511</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a14ef4be050f894475d155ea11f00d011"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011">ripple::SHAMapTreeNode::makeTransactionWithMeta</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeTransactionWithMeta(Slice data, SHAMapHash const &amp;hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00055">SHAMapTreeNode.cpp:55</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6f30ee31f9359c69a5294921d5c10d0b"><div class="ttname"><a href="namespaceripple.html#a6f30ee31f9359c69a5294921d5c10d0b">ripple::safe_cast</a></div><div class="ttdeci">constexpr std::enable_if_t&lt; std::is_same_v&lt; typename Dest::unit_type, typename Src::unit_type &gt; &amp;&amp;std::is_integral_v&lt; typename Dest::value_type &gt; &amp;&amp;std::is_integral_v&lt; typename Src::value_type &gt;, Dest &gt; safe_cast(Src s) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="FeeUnits_8h_source.html#l00537">FeeUnits.h:537</a></div></div>
<div class="ttc" id="ato_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a></div><div class="ttdeci">T to_string(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a394c3299f6cfcebdaa4bc98ec0c602d6"><div class="ttname"><a href="classripple_1_1Serializer.html#a394c3299f6cfcebdaa4bc98ec0c602d6">ripple::Serializer::slice</a></div><div class="ttdeci">Slice slice() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00063">Serializer.h:63</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4"><div class="ttname"><a href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4">ripple::HashPrefix::transactionID</a></div><div class="ttdeci">@ transactionID</div><div class="ttdoc">transaction plus signature to give transaction ID</div></div>
<div class="ttc" id="anamespaceripple_html_ad5143ceada01141772ae4aab984f94bda0ec8825bcd36b1d9a4651f1fc088254b"><div class="ttname"><a href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda0ec8825bcd36b1d9a4651f1fc088254b">ripple::HashPrefix::leafNode</a></div><div class="ttdeci">@ leafNode</div><div class="ttdoc">account state</div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00039">Serializer.h:39</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac329442511917ee4fb295996041263e9"><div class="ttname"><a href="namespaceripple.html#ac329442511917ee4fb295996041263e9">ripple::wireTypeCompressedInner</a></div><div class="ttdeci">static constexpr unsigned const char wireTypeCompressedInner</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8h_source.html#l00042">SHAMapTreeNode.h:42</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a5631e2f77123e3b73229ef4c890ad60f"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a5631e2f77123e3b73229ef4c890ad60f">ripple::SHAMapTreeNode::makeFromPrefix</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeFromPrefix(Slice rawNode, SHAMapHash const &amp;hash)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00148">SHAMapTreeNode.cpp:148</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a2a89965bbb918a1aee8a34034e4d82f7"><div class="ttname"><a href="classripple_1_1Serializer.html#a2a89965bbb918a1aee8a34034e4d82f7">ripple::Serializer::getBitString</a></div><div class="ttdeci">bool getBitString(base_uint&lt; Bits, Tag &gt; &amp;data, int offset) const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00146">Serializer.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a0c39565dc9b4fde1230586ba826889c0"><div class="ttname"><a href="classripple_1_1Serializer.html#a0c39565dc9b4fde1230586ba826889c0">ripple::Serializer::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00069">Serializer.h:69</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae3f5bc352766a1a8dbf5270eb7dbc2e7"><div class="ttname"><a href="namespaceripple.html#ae3f5bc352766a1a8dbf5270eb7dbc2e7">ripple::sha512Half</a></div><div class="ttdeci">sha512_half_hasher::result_type sha512Half(Args const &amp;... args)</div><div class="ttdoc">Returns the SHA512-Half of a series of objects.</div><div class="ttdef"><b>Definition:</b> <a href="digest_8h_source.html#l00216">digest.h:216</a></div></div>
<div class="ttc" id="aclassripple_1_1Slice_html_a60d6d55a9111d4eb9173875a4af505a8"><div class="ttname"><a href="classripple_1_1Slice.html#a60d6d55a9111d4eb9173875a4af505a8">ripple::Slice::remove_prefix</a></div><div class="ttdeci">void remove_prefix(std::size_t n)</div><div class="ttdoc">Shrinks the slice by moving its start forward by n characters.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00131">Slice.h:131</a></div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
<div class="ttc" id="anamespaceripple_html_af9776f187d3686a7fba4c2d2fbeebdf4"><div class="ttname"><a href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">ripple::to_string</a></div><div class="ttdeci">std::string to_string(Manifest const &amp;m)</div><div class="ttdoc">Format the specified manifest to a string for debugging purposes.</div><div class="ttdef"><b>Definition:</b> <a href="app_2misc_2impl_2Manifest_8cpp_source.html#l00038">app/misc/impl/Manifest.cpp:38</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapInnerNode_html_a7c00b72186bf55aad286505bb5cedc00"><div class="ttname"><a href="classripple_1_1SHAMapInnerNode.html#a7c00b72186bf55aad286505bb5cedc00">ripple::SHAMapInnerNode::makeCompressedInner</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeCompressedInner(Slice data)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapInnerNode_8cpp_source.html#l00161">SHAMapInnerNode.cpp:161</a></div></div>
<div class="ttc" id="aclassripple_1_1Slice_html_a4e8d0e9da187938baa8fd4f3e7051867"><div class="ttname"><a href="classripple_1_1Slice.html#a4e8d0e9da187938baa8fd4f3e7051867">ripple::Slice::remove_suffix</a></div><div class="ttdeci">void remove_suffix(std::size_t n)</div><div class="ttdoc">Shrinks the slice by moving its end backward by n characters.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00139">Slice.h:139</a></div></div>
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a3c42ed30e5e522b0f9cfcb4a44ff197f"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f">ripple::SHAMapTreeNode::makeAccountState</a></div><div class="ttdeci">static std::shared_ptr&lt; SHAMapTreeNode &gt; makeAccountState(Slice data, SHAMapHash const &amp;hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00084">SHAMapTreeNode.cpp:84</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>