mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
deploy: 9d89d4c188
This commit is contained in:
@@ -113,196 +113,193 @@ $(function() {
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">bool</span> hashValid)</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// FIXME: using a Serializer results in a copy; avoid it?</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s(data.begin(), data.size());</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <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>  </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="namespaceripple.html#ae3f5bc352766a1a8dbf5270eb7dbc2e7">sha512Half</a>(<a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4">HashPrefix::transactionID</a>, data), s);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxLeafNode>(std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxLeafNode>(std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011"> 58</a></span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011">SHAMapTreeNode::makeTransactionWithMeta</a>(</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">bool</span> hashValid)</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> {</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s(data.data(), data.size());</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> tag;</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a14ef4be050f894475d155ea11f00d011"> 55</a></span> <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>  <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">bool</span> hashValid)</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <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>  </div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <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>  </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">if</span> (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="l00065"></a><span class="lineno"> 65</span>  Throw<std::runtime_error>(<span class="stringliteral">"Short TXN+MD node"</span>);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (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="l00068"></a><span class="lineno"> 68</span>  Throw<std::runtime_error>(<span class="stringliteral">"Short TXN+MD node"</span>);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// FIXME: improve this interface so that the above check isn't needed</span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <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="l00072"></a><span class="lineno"> 72</span>  Throw<std::out_of_range>(</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="stringliteral">"Short TXN+MD node ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  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="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(tag, s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>());</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxPlusMetaLeafNode>(</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// FIXME: improve this interface so that the above check isn't needed</span></div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <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>  Throw<std::out_of_range>(</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="stringliteral">"Short TXN+MD node ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  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>  </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(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>  </div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxPlusMetaLeafNode>(</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxPlusMetaLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapTxPlusMetaLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f"> 87</a></span> <a class="code" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f">SHAMapTreeNode::makeAccountState</a>(</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">bool</span> hashValid)</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s(data.data(), data.size());</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> tag;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a3c42ed30e5e522b0f9cfcb4a44ff197f"> 84</a></span> <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>  <a class="code" href="classripple_1_1Slice.html">Slice</a> data,</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">bool</span> hashValid)</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <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>  </div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <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>  </div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (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="l00094"></a><span class="lineno"> 94</span>  Throw<std::runtime_error>(<span class="stringliteral">"short AS node"</span>);</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (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="l00097"></a><span class="lineno"> 97</span>  Throw<std::runtime_error>(<span class="stringliteral">"short AS node"</span>);</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// FIXME: improve this interface so that the above check isn't needed</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <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="l00101"></a><span class="lineno"> 101</span>  Throw<std::out_of_range>(</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="stringliteral">"Short AS node ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  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="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// FIXME: improve this interface so that the above check isn't needed</span></div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <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>  Throw<std::out_of_range>(</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="stringliteral">"Short AS node ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  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>  </div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <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>  Throw<std::runtime_error>(<span class="stringliteral">"Invalid AS node"</span>);</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">if</span> (tag.<a class="code" href="classripple_1_1base__uint.html#a6fd7dba1ad932f4c1246c9a090c145e5">isZero</a>())</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  Throw<std::runtime_error>(<span class="stringliteral">"Invalid AS node"</span>);</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(tag, s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>());</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapAccountStateLeafNode>(</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">auto</span> item = std::make_shared<SHAMapItem const>(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>  </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> (hashValid)</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapAccountStateLeafNode>(</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  std::move(item), 0, hash);</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapAccountStateLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> std::make_shared<SHAMapAccountStateLeafNode>(std::move(item), 0);</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57"> 119</a></span> <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="l00120"></a><span class="lineno"> 120</span> {</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (rawNode.<a class="code" href="classripple_1_1Slice.html#a38d951bc2f27aaf89c3fdb5914c7e169">empty</a>())</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <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="l00125"></a><span class="lineno"> 125</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  rawNode.<a class="code" href="classripple_1_1Slice.html#a4e8d0e9da187938baa8fd4f3e7051867">remove_suffix</a>(1);</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#ae1b494609b7a732614554da92e235f57"> 116</a></span> <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> {</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <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>  <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <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>  </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  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>  </div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">bool</span> <span class="keyword">const</span> hashValid = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span> hash;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#a358175eb11ec25bda82f8bfc46077581">wireTypeTransaction</a>)</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <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="l00131"></a><span class="lineno"> 131</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#a2431568230bc455a272a4d23cf1020f8">wireTypeAccountState</a>)</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <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="l00134"></a><span class="lineno"> 134</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ae4966411bf110181aa1b1ef4a2d8c690">wireTypeInner</a>)</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <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="l00137"></a><span class="lineno"> 137</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ac329442511917ee4fb295996041263e9">wireTypeCompressedInner</a>)</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SHAMapInnerNode.html#a7c00b72186bf55aad286505bb5cedc00">SHAMapInnerNode::makeCompressedInner</a>(rawNode);</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ae4ab9a7d71bae5a1e2bdb826e737474d">wireTypeTransactionWithMeta</a>)</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <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="l00145"></a><span class="lineno"> 145</span>  </div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  Throw<std::runtime_error>(</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="stringliteral">"wire: Unknown type ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> }</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a5631e2f77123e3b73229ef4c890ad60f"> 151</a></span> <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>& hash)</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (rawNode.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>() < 4)</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  Throw<std::runtime_error>(<span class="stringliteral">"prefix: short node"</span>);</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// FIXME: Use SerialIter::get32?</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// Extract the prefix</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">auto</span> <span class="keyword">const</span> type = safe_cast<HashPrefix>(</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  (safe_cast<std::uint32_t>(rawNode[0]) << 24) +</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  (safe_cast<std::uint32_t>(rawNode[1]) << 16) +</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  (safe_cast<std::uint32_t>(rawNode[2]) << 8) +</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  (safe_cast<std::uint32_t>(rawNode[3])));</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  rawNode.<a class="code" href="classripple_1_1Slice.html#a60d6d55a9111d4eb9173875a4af505a8">remove_prefix</a>(4);</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordtype">bool</span> <span class="keyword">const</span> hashValid = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  Throw<std::runtime_error>(</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="stringliteral">"wire: Unknown type ("</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">")"</span>);</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SHAMapTreeNode></a></div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a5631e2f77123e3b73229ef4c890ad60f"> 148</a></span> <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>& hash)</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> {</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">if</span> (rawNode.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>() < 4)</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  Throw<std::runtime_error>(<span class="stringliteral">"prefix: short node"</span>);</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// FIXME: Use SerialIter::get32?</span></div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="comment">// Extract the prefix</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">auto</span> <span class="keyword">const</span> type = safe_cast<HashPrefix>(</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  (safe_cast<std::uint32_t>(rawNode[0]) << 24) +</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  (safe_cast<std::uint32_t>(rawNode[1]) << 16) +</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  (safe_cast<std::uint32_t>(rawNode[2]) << 8) +</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  (safe_cast<std::uint32_t>(rawNode[3])));</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  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>  </div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <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>  </div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda9ff03a73c38a945848893498e0c617a4">HashPrefix::transactionID</a>)</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <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="l00168"></a><span class="lineno"> 168</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda0ec8825bcd36b1d9a4651f1fc088254b">HashPrefix::leafNode</a>)</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <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="l00171"></a><span class="lineno"> 171</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bdad9a09590da318a86ba2bd64b374c2d77">HashPrefix::innerNode</a>)</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <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="l00174"></a><span class="lineno"> 174</span>  <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>  <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>  </div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (type == <a class="code" href="namespaceripple.html#ad5143ceada01141772ae4aab984f94bda555f976fd82d9e7e487770c44c7980bf">HashPrefix::txNode</a>)</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <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="l00179"></a><span class="lineno"> 179</span>  </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  Throw<std::runtime_error>(</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="stringliteral">"prefix: unknown type ("</span> +</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <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><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t<HashPrefix></a>>(type)) +</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="stringliteral">")"</span>);</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> }</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d"> 187</a></span> <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>& <span class="keywordtype">id</span>)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="keyword"></span>{</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a96888695e8d79474e080c334f149e30a">to_string</a>(<span class="keywordtype">id</span>);</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  Throw<std::runtime_error>(</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="stringliteral">"prefix: unknown type ("</span> +</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <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><<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t<HashPrefix></a>>(type)) +</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="stringliteral">")"</span>);</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <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> <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>& <span class="keywordtype">id</span>)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keyword"></span>{</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <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> }</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> } <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#l00176">Serializer.cpp:176</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< SHAMapTreeNode > makeFullInner(Slice data, SHAMapHash const &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#l00038">SHAMapTreeNode.h:38</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#l00040">SHAMapTreeNode.h:40</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a96888695e8d79474e080c334f149e30a"><div class="ttname"><a href="namespaceripple.html#a96888695e8d79474e080c334f149e30a">ripple::to_string</a></div><div class="ttdeci">std::string to_string(ListDisposition disposition)</div><div class="ttdef"><b>Definition:</b> <a href="ValidatorList_8cpp_source.html#l00045">ValidatorList.cpp:45</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< SHAMapTreeNode > makeFromWire(Slice rawNode)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00119">SHAMapTreeNode.cpp:119</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< SHAMapTreeNode > 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 &) const</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00187">SHAMapTreeNode.cpp:187</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 &) 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#l00047">SHAMapTreeNode.h:47</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#l00042">SHAMapTreeNode.h:42</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#l00039">SHAMapTreeNode.h:39</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< 256 ></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< SHAMapTreeNode > makeTransaction(Slice data, SHAMapHash const &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#l00096">base_uint.h:96</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#l00439">base_uint.h:439</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< SHAMapTreeNode > makeTransactionWithMeta(Slice data, SHAMapHash const &hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00058">SHAMapTreeNode.cpp:58</a></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#l00097">base_uint.h:97</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#l00508">base_uint.h:508</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< SHAMapTreeNode > makeTransactionWithMeta(Slice data, SHAMapHash const &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< std::is_same_v< typename Dest::unit_type, typename Src::unit_type > &&std::is_integral_v< typename Dest::value_type > &&std::is_integral_v< typename Src::value_type >, Dest > 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#l00041">SHAMapTreeNode.h:41</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< SHAMapTreeNode > makeFromPrefix(Slice rawNode, SHAMapHash const &hash)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00151">SHAMapTreeNode.cpp:151</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< SHAMapTreeNode > makeFromPrefix(Slice rawNode, SHAMapHash const &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< Bits, Tag > &data, int offset) const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00144">Serializer.h:144</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< Bits, Tag > &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 &... 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_1Serializer_html_a5f8c275ba7cfa80e56671b6935e29242"><div class="ttname"><a href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">ripple::Serializer::peekData</a></div><div class="ttdeci">Blob const & peekData() const</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00166">Serializer.h:166</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 &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< SHAMapTreeNode > 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< SHAMapTreeNode > makeAccountState(Slice data, SHAMapHash const &hash, bool hashValid)</div><div class="ttdef"><b>Definition:</b> <a href="SHAMapTreeNode_8cpp_source.html#l00087">SHAMapTreeNode.cpp:87</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< SHAMapTreeNode > makeAccountState(Slice data, SHAMapHash const &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  <a href="http://www.doxygen.org/index.html">
|
||||
|
||||
Reference in New Issue
Block a user