This commit is contained in:
Bronek
2025-09-11 07:52:23 -07:00
parent e88efa585c
commit 5901d498b6
6 changed files with 120 additions and 66 deletions

View File

@@ -122,75 +122,101 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="comment">// The Concise Transaction ID provides a way to identify a transaction</span></div> <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="comment">// The Concise Transaction ID provides a way to identify a transaction</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="comment">// that includes which network the transaction was submitted to.</span></div> <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="comment">// that includes which network the transaction was submitted to.</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div> <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="keyword">inline</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;std::string&gt;</a></div> <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="keyword">inline</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;std::string&gt;</a></div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}"> <div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03"> 43</a></span><a class="code hl_function" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">encodeCTID</a>(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) <span class="keyword">noexcept</span></div> <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03"> 53</a></span><a class="code hl_function" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">encodeCTID</a>(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>{</div> <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span>{</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">if</span> (ledgerSeq &gt; 0x0FFF&#39;FFFF || txnIndex &gt; 0xFFFF || networkID &gt; 0xFFFF)</div> <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">constexpr</span> uint32_t maxLedgerSeq = 0x0FFF&#39;FFFF;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">return</span> {};</div> <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">constexpr</span> uint32_t maxTxnIndex = 0xFFFF;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div> <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">constexpr</span> uint32_t maxNetworkID = 0xFFFF;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> uint64_t ctidValue =</div> <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> ((0xC000&#39;0000ULL + <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(ledgerSeq)) &lt;&lt; 32) +</div> <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">if</span> (ledgerSeq &gt; maxLedgerSeq || txnIndex &gt; maxTxnIndex ||</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> (<span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(txnIndex) &lt;&lt; 16) + networkID;</div> <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> networkID &gt; maxNetworkID)</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div> <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> buffer;</div> <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> buffer &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/hex.html">std::hex</a> &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/uppercase.html">std::uppercase</a> &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/setfill.html">std::setfill</a>(<span class="charliteral">&#39;0&#39;</span>) &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/setw.html">std::setw</a>(16)</div> <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> uint64_t ctidValue =</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> &lt;&lt; ctidValue;</div> <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> ((0xC000&#39;0000ULL + <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(ledgerSeq)) &lt;&lt; 32) |</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> {buffer.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>()};</div> <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> ((<span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(txnIndex) &lt;&lt; 16) | networkID);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>}</div> <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> buffer;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> buffer &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/hex.html">std::hex</a> &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/uppercase.html">std::uppercase</a> &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/setfill.html">std::setfill</a>(<span class="charliteral">&#39;0&#39;</span>) &lt;&lt; <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/manip/setw.html">std::setw</a>(16)</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> &lt;&lt; ctidValue;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> buffer.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>}</div>
</div> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div> <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div> <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keyword">inline</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;std::tuple&lt;uint32_t, uint16_t, uint16_t&gt;</a>&gt;</div> <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="keyword">inline</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;std::tuple&lt;uint32_t, uint16_t, uint16_t&gt;</a>&gt;</div>
<div class="foldopen" id="foldopen00060" data-start="{" data-end="}"> <div class="foldopen" id="foldopen00083" data-start="{" data-end="}">
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca"> 60</a></span><a class="code hl_function" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">decodeCTID</a>(T <span class="keyword">const</span> ctid) <span class="keyword">noexcept</span></div> <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca"> 83</a></span><a class="code hl_function" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">decodeCTID</a>(T <span class="keyword">const</span> ctid) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>{</div> <div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>{</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> uint64_t ctidValue{0};</div> <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> uint64_t ctidValue = 0;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (</div> <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, std::string&gt;</a> || <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, char*&gt;</a> ||</div> <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, char const*&gt;</a> || <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, std::string_view&gt;</a>)</div> <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, std::string&gt;</a> || <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, std::string_view&gt;</a> ||</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> {</div> <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, char*&gt;</a> || <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v&lt;T, char const*&gt;</a>)</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> ctidString(ctid);</div> <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div> <div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> ctidString(ctid);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">if</span> (ctidString.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">length</a>() != 16)</div> <div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> {};</div> <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">if</span> (ctidString.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>() != 16)</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div> <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">if</span> (!boost::regex_match(ctidString, boost::regex(<span class="stringliteral">&quot;^[0-9A-Fa-f]+$&quot;</span>)))</div> <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> {};</div> <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">static</span> boost::regex <span class="keyword">const</span> hexRegex(<span class="stringliteral">&quot;^[0-9A-Fa-f]{16}$&quot;</span>);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div> <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">if</span> (!boost::regex_match(ctidString, hexRegex))</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> ctidValue = <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/stoul.html">std::stoull</a>(ctidString, <span class="keyword">nullptr</span>, 16);</div> <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div> <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_integral_v&lt;T&gt;</a>)</div> <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> ctidValue = ctid;</div> <div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> {</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">else</span></div> <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> ctidValue = <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/stoul.html">std::stoull</a>(ctidString, <span class="keyword">nullptr</span>, 16);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">return</span> {};</div> <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> }</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div> <div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="comment">// LCOV_EXCL_START</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">if</span> ((ctidValue &amp; 0xF000&#39;0000&#39;0000&#39;0000ULL) != 0xC000&#39;0000&#39;0000&#39;0000ULL)</div> <div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">catch</span> (...)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">return</span> {};</div> <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div> <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// should be impossible to hit given the length/regex check</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> uint32_t ledger_seq = (ctidValue &gt;&gt; 32) &amp; 0xFFFF&#39;FFFUL;</div> <div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> uint16_t txn_index = (ctidValue &gt;&gt; 16) &amp; 0xFFFFU;</div> <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> }</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> uint16_t network_id = ctidValue &amp; 0xFFFFU;</div> <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// LCOV_EXCL_STOP</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">return</span> {{ledger_seq, txn_index, network_id}};</div> <div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> }</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>}</div> <div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_integral_v&lt;T&gt;</a>)</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> ctidValue = <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(ctid);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// Validate CTID prefix.</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keyword">constexpr</span> uint64_t ctidPrefixMask = 0xF000&#39;0000&#39;0000&#39;0000ULL;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keyword">constexpr</span> uint64_t ctidPrefix = 0xC000&#39;0000&#39;0000&#39;0000ULL;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordflow">if</span> ((ctidValue &amp; ctidPrefixMask) != ctidPrefix)</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> uint32_t ledgerSeq = <span class="keyword">static_cast&lt;</span>uint32_t<span class="keyword">&gt;</span>((ctidValue &gt;&gt; 32) &amp; 0x0FFF&#39;FFFF);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> uint16_t txnIndex = <span class="keyword">static_cast&lt;</span>uint16_t<span class="keyword">&gt;</span>((ctidValue &gt;&gt; 16) &amp; 0xFFFF);</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> uint16_t networkID = <span class="keyword">static_cast&lt;</span>uint16_t<span class="keyword">&gt;</span>(ctidValue &amp; 0xFFFF);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/tuple/make_tuple.html">std::make_tuple</a>(ledgerSeq, txnIndex, networkID);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span>}</div>
</div> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div> <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span>} <span class="comment">// namespace RPC</span></div> <div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span>} <span class="comment">// namespace RPC</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>} <span class="comment">// namespace ripple</span></div> <div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div> <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="preprocessor">#endif</span></div> <div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span><span class="preprocessor">#endif</span></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> <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>
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div> <div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div>
<div class="ttc" id="ahex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/hex.html">std::hex</a></div><div class="ttdeci">T hex(T... args)</div></div> <div class="ttc" id="ahex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/hex.html">std::hex</a></div><div class="ttdeci">T hex(T... args)</div></div>
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div> <div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00043">CTID.h:43</a></div></div> <div class="ttc" id="amake_tuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple/make_tuple.html">std::make_tuple</a></div><div class="ttdeci">T make_tuple(T... args)</div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00060">CTID.h:60</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00053">CTID.h:53</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdoc">Decodes a CTID string or integer into its component parts.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00083">CTID.h:83</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="algorithm_8h_source.html#l00025">algorithm.h:25</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div> <div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
<div class="ttc" id="aregex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/regex.html">regex</a></div></div> <div class="ttc" id="aregex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/regex.html">regex</a></div></div>
<div class="ttc" id="asetfill_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/setfill.html">std::setfill</a></div><div class="ttdeci">T setfill(T... args)</div></div> <div class="ttc" id="asetfill_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/setfill.html">std::setfill</a></div><div class="ttdeci">T setfill(T... args)</div></div>
<div class="ttc" id="asetw_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/setw.html">std::setw</a></div><div class="ttdeci">T setw(T... args)</div></div> <div class="ttc" id="asetw_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/setw.html">std::setw</a></div><div class="ttdeci">T setw(T... args)</div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::length</a></div><div class="ttdeci">T length(T... args)</div></div> <div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::size</a></div><div class="ttdeci">T size(T... args)</div></div>
<div class="ttc" id="asstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/sstream.html">sstream</a></div></div> <div class="ttc" id="asstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/sstream.html">sstream</a></div></div>
<div class="ttc" id="astoul_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/stoul.html">std::stoull</a></div><div class="ttdeci">T stoull(T... args)</div></div> <div class="ttc" id="astoul_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/stoul.html">std::stoull</a></div><div class="ttdeci">T stoull(T... args)</div></div>
<div class="ttc" id="astr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">std::stringstream::str</a></div><div class="ttdeci">T str(T... args)</div></div> <div class="ttc" id="astr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">std::stringstream::str</a></div><div class="ttdeci">T str(T... args)</div></div>

View File

@@ -5519,7 +5519,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00662">base_uint.h:662</a></div></div> <div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00662">base_uint.h:662</a></div></div>
<div class="ttc" id="anamespacebeast_html_ad4d3145468ad564a92ac41b9812274a0"><div class="ttname"><a href="namespacebeast.html#ad4d3145468ad564a92ac41b9812274a0">beast::rngfill</a></div><div class="ttdeci">void rngfill(void *const buffer, std::size_t const bytes, Generator &amp;g)</div><div class="ttdef"><b>Definition</b> <a href="rngfill_8h_source.html#l00034">rngfill.h:34</a></div></div> <div class="ttc" id="anamespacebeast_html_ad4d3145468ad564a92ac41b9812274a0"><div class="ttname"><a href="namespacebeast.html#ad4d3145468ad564a92ac41b9812274a0">beast::rngfill</a></div><div class="ttdeci">void rngfill(void *const buffer, std::size_t const bytes, Generator &amp;g)</div><div class="ttdef"><b>Definition</b> <a href="rngfill_8h_source.html#l00034">rngfill.h:34</a></div></div>
<div class="ttc" id="anamespaceripple_1_1BuildInfo_html_a8aa97a762a323b5f5e96db0a2fc1e33a"><div class="ttname"><a href="namespaceripple_1_1BuildInfo.html#a8aa97a762a323b5f5e96db0a2fc1e33a">ripple::BuildInfo::getVersionString</a></div><div class="ttdeci">std::string const &amp; getVersionString()</div><div class="ttdoc">Server version.</div><div class="ttdef"><b>Definition</b> <a href="BuildInfo_8cpp_source.html#l00068">BuildInfo.cpp:68</a></div></div> <div class="ttc" id="anamespaceripple_1_1BuildInfo_html_a8aa97a762a323b5f5e96db0a2fc1e33a"><div class="ttname"><a href="namespaceripple_1_1BuildInfo.html#a8aa97a762a323b5f5e96db0a2fc1e33a">ripple::BuildInfo::getVersionString</a></div><div class="ttdeci">std::string const &amp; getVersionString()</div><div class="ttdoc">Server version.</div><div class="ttdef"><b>Definition</b> <a href="BuildInfo_8cpp_source.html#l00068">BuildInfo.cpp:68</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00043">CTID.h:43</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00053">CTID.h:53</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a2e549c81edcbd0befcfa4ee871c6f27e"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a2e549c81edcbd0befcfa4ee871c6f27e">ripple::RPC::computeBookChanges</a></div><div class="ttdeci">Json::Value computeBookChanges(std::shared_ptr&lt; L const &gt; const &amp;lpAccepted)</div><div class="ttdef"><b>Definition</b> <a href="BookChanges_8h_source.html#l00047">BookChanges.h:47</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a2e549c81edcbd0befcfa4ee871c6f27e"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a2e549c81edcbd0befcfa4ee871c6f27e">ripple::RPC::computeBookChanges</a></div><div class="ttdeci">Json::Value computeBookChanges(std::shared_ptr&lt; L const &gt; const &amp;lpAccepted)</div><div class="ttdef"><b>Definition</b> <a href="BookChanges_8h_source.html#l00047">BookChanges.h:47</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a474e0d26afe286dfc2bddf76f95e1591"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a474e0d26afe286dfc2bddf76f95e1591">ripple::RPC::insertNFTSyntheticInJson</a></div><div class="ttdeci">void insertNFTSyntheticInJson(Json::Value &amp;, std::shared_ptr&lt; STTx const &gt; const &amp;, TxMeta const &amp;)</div><div class="ttdoc">Adds common synthetic fields to transaction-related JSON responses.</div><div class="ttdef"><b>Definition</b> <a href="NFTSyntheticSerializer_8cpp_source.html#l00034">NFTSyntheticSerializer.cpp:34</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a474e0d26afe286dfc2bddf76f95e1591"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a474e0d26afe286dfc2bddf76f95e1591">ripple::RPC::insertNFTSyntheticInJson</a></div><div class="ttdeci">void insertNFTSyntheticInJson(Json::Value &amp;, std::shared_ptr&lt; STTx const &gt; const &amp;, TxMeta const &amp;)</div><div class="ttdoc">Adds common synthetic fields to transaction-related JSON responses.</div><div class="ttdef"><b>Definition</b> <a href="NFTSyntheticSerializer_8cpp_source.html#l00034">NFTSyntheticSerializer.cpp:34</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a6f5aad140d4277d0bd3fa96630f802a1"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a6f5aad140d4277d0bd3fa96630f802a1">ripple::RPC::insertMPTokenIssuanceID</a></div><div class="ttdeci">void insertMPTokenIssuanceID(Json::Value &amp;response, std::shared_ptr&lt; STTx const &gt; const &amp;transaction, TxMeta const &amp;transactionMeta)</div><div class="ttdef"><b>Definition</b> <a href="MPTokenIssuanceID_8cpp_source.html#l00064">MPTokenIssuanceID.cpp:64</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a6f5aad140d4277d0bd3fa96630f802a1"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a6f5aad140d4277d0bd3fa96630f802a1">ripple::RPC::insertMPTokenIssuanceID</a></div><div class="ttdeci">void insertMPTokenIssuanceID(Json::Value &amp;response, std::shared_ptr&lt; STTx const &gt; const &amp;transaction, TxMeta const &amp;transactionMeta)</div><div class="ttdef"><b>Definition</b> <a href="MPTokenIssuanceID_8cpp_source.html#l00064">MPTokenIssuanceID.cpp:64</a></div></div>

View File

@@ -325,7 +325,7 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div></div> <div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div> <div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div> <div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00043">CTID.h:43</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00053">CTID.h:53</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="algorithm_8h_source.html#l00025">algorithm.h:25</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843">ripple::TransStatus</a></div><div class="ttdeci">TransStatus</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00046">Transaction.h:46</a></div></div> <div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843">ripple::TransStatus</a></div><div class="ttdeci">TransStatus</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00046">Transaction.h:46</a></div></div>
<div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843a13c5625591c8f6b2f3f0f6dcdf53d302"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843a13c5625591c8f6b2f3f0f6dcdf53d302">ripple::INCLUDED</a></div><div class="ttdeci">@ INCLUDED</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00049">Transaction.h:49</a></div></div> <div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843a13c5625591c8f6b2f3f0f6dcdf53d302"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843a13c5625591c8f6b2f3f0f6dcdf53d302">ripple::INCLUDED</a></div><div class="ttdeci">@ INCLUDED</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00049">Transaction.h:49</a></div></div>

View File

@@ -1094,9 +1094,9 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div> <div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="amake_tuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple/make_tuple.html">std::make_tuple</a></div><div class="ttdeci">T make_tuple(T... args)</div></div> <div class="ttc" id="amake_tuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple/make_tuple.html">std::make_tuple</a></div><div class="ttdeci">T make_tuple(T... args)</div></div>
<div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a></div><div class="ttdeci">@ objectValue</div><div class="ttdoc">object value (collection of name/value pairs).</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00046">json_value.h:45</a></div></div> <div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a></div><div class="ttdeci">@ objectValue</div><div class="ttdoc">object value (collection of name/value pairs).</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00046">json_value.h:45</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00043">CTID.h:43</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00053">CTID.h:53</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_aa01c09044342d3707e231b3ede5086f0"><div class="ttname"><a href="namespaceripple_1_1RPC.html#aa01c09044342d3707e231b3ede5086f0">ripple::RPC::get_error_info</a></div><div class="ttdeci">ErrorInfo const &amp; get_error_info(error_code_i code)</div><div class="ttdoc">Returns an ErrorInfo that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00183">ErrorCodes.cpp:183</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_aa01c09044342d3707e231b3ede5086f0"><div class="ttname"><a href="namespaceripple_1_1RPC.html#aa01c09044342d3707e231b3ede5086f0">ripple::RPC::get_error_info</a></div><div class="ttdeci">ErrorInfo const &amp; get_error_info(error_code_i code)</div><div class="ttdoc">Returns an ErrorInfo that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00183">ErrorCodes.cpp:183</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00060">CTID.h:60</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdoc">Decodes a CTID string or integer into its component parts.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00083">CTID.h:83</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="algorithm_8h_source.html#l00025">algorithm.h:25</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843af8c5e3e10d98fcbda2c4d43d50d712a2"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843af8c5e3e10d98fcbda2c4d43d50d712a2">ripple::INVALID</a></div><div class="ttdeci">@ INVALID</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00048">Transaction.h:48</a></div></div> <div class="ttc" id="anamespaceripple_html_a2e97c395a5e1ef4ed1052299e0e60843af8c5e3e10d98fcbda2c4d43d50d712a2"><div class="ttname"><a href="namespaceripple.html#a2e97c395a5e1ef4ed1052299e0e60843af8c5e3e10d98fcbda2c4d43d50d712a2">ripple::INVALID</a></div><div class="ttdeci">@ INVALID</div><div class="ttdef"><b>Definition</b> <a href="Transaction_8h_source.html#l00048">Transaction.h:48</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">ripple::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00135">ErrorCodes.h:135</a></div></div> <div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">ripple::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00135">ErrorCodes.h:135</a></div></div>

View File

@@ -470,12 +470,12 @@ $(document).ready(function() { init_codefold(0); });
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div> <div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></div> <div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></div>
<div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a></div><div class="ttdeci">@ objectValue</div><div class="ttdoc">object value (collection of name/value pairs).</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00046">json_value.h:45</a></div></div> <div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a></div><div class="ttdeci">@ objectValue</div><div class="ttdoc">object value (collection of name/value pairs).</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00046">json_value.h:45</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00043">CTID.h:43</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a193a678f625ec77262c8d5f3ca91df03"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">ripple::RPC::encodeCTID</a></div><div class="ttdeci">std::optional&lt; std::string &gt; encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</div><div class="ttdoc">Encodes ledger sequence, transaction index, and network ID into a CTID string.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00053">CTID.h:53</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a2cd6200f6709780fcf1dd26ec9cd2866"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866">ripple::RPC::make_error</a></div><div class="ttdeci">Json::Value make_error(error_code_i code)</div><div class="ttdoc">Returns a new json object that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00191">ErrorCodes.cpp:191</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a2cd6200f6709780fcf1dd26ec9cd2866"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866">ripple::RPC::make_error</a></div><div class="ttdeci">Json::Value make_error(error_code_i code)</div><div class="ttdoc">Returns a new json object that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00191">ErrorCodes.cpp:191</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a474e0d26afe286dfc2bddf76f95e1591"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a474e0d26afe286dfc2bddf76f95e1591">ripple::RPC::insertNFTSyntheticInJson</a></div><div class="ttdeci">void insertNFTSyntheticInJson(Json::Value &amp;, std::shared_ptr&lt; STTx const &gt; const &amp;, TxMeta const &amp;)</div><div class="ttdoc">Adds common synthetic fields to transaction-related JSON responses.</div><div class="ttdef"><b>Definition</b> <a href="NFTSyntheticSerializer_8cpp_source.html#l00034">NFTSyntheticSerializer.cpp:34</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a474e0d26afe286dfc2bddf76f95e1591"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a474e0d26afe286dfc2bddf76f95e1591">ripple::RPC::insertNFTSyntheticInJson</a></div><div class="ttdeci">void insertNFTSyntheticInJson(Json::Value &amp;, std::shared_ptr&lt; STTx const &gt; const &amp;, TxMeta const &amp;)</div><div class="ttdoc">Adds common synthetic fields to transaction-related JSON responses.</div><div class="ttdef"><b>Definition</b> <a href="NFTSyntheticSerializer_8cpp_source.html#l00034">NFTSyntheticSerializer.cpp:34</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_a6f5aad140d4277d0bd3fa96630f802a1"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a6f5aad140d4277d0bd3fa96630f802a1">ripple::RPC::insertMPTokenIssuanceID</a></div><div class="ttdeci">void insertMPTokenIssuanceID(Json::Value &amp;response, std::shared_ptr&lt; STTx const &gt; const &amp;transaction, TxMeta const &amp;transactionMeta)</div><div class="ttdef"><b>Definition</b> <a href="MPTokenIssuanceID_8cpp_source.html#l00064">MPTokenIssuanceID.cpp:64</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_a6f5aad140d4277d0bd3fa96630f802a1"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a6f5aad140d4277d0bd3fa96630f802a1">ripple::RPC::insertMPTokenIssuanceID</a></div><div class="ttdeci">void insertMPTokenIssuanceID(Json::Value &amp;response, std::shared_ptr&lt; STTx const &gt; const &amp;transaction, TxMeta const &amp;transactionMeta)</div><div class="ttdef"><b>Definition</b> <a href="MPTokenIssuanceID_8cpp_source.html#l00064">MPTokenIssuanceID.cpp:64</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_abf346555d1927183974ae3feef4a25ec"><div class="ttname"><a href="namespaceripple_1_1RPC.html#abf346555d1927183974ae3feef4a25ec">ripple::RPC::insertDeliverMax</a></div><div class="ttdeci">void insertDeliverMax(Json::Value &amp;tx_json, TxType txnType, unsigned int apiVersion)</div><div class="ttdoc">Copy Amount field to DeliverMax field in transaction output JSON.</div><div class="ttdef"><b>Definition</b> <a href="DeliverMax_8cpp_source.html#l00028">DeliverMax.cpp:28</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_abf346555d1927183974ae3feef4a25ec"><div class="ttname"><a href="namespaceripple_1_1RPC.html#abf346555d1927183974ae3feef4a25ec">ripple::RPC::insertDeliverMax</a></div><div class="ttdeci">void insertDeliverMax(Json::Value &amp;tx_json, TxType txnType, unsigned int apiVersion)</div><div class="ttdoc">Copy Amount field to DeliverMax field in transaction output JSON.</div><div class="ttdef"><b>Definition</b> <a href="DeliverMax_8cpp_source.html#l00028">DeliverMax.cpp:28</a></div></div>
<div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00060">CTID.h:60</a></div></div> <div class="ttc" id="anamespaceripple_1_1RPC_html_ae4b48e37f1a6940816047cd107faebca"><div class="ttname"><a href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">ripple::RPC::decodeCTID</a></div><div class="ttdeci">std::optional&lt; std::tuple&lt; uint32_t, uint16_t, uint16_t &gt; &gt; decodeCTID(T const ctid) noexcept</div><div class="ttdoc">Decodes a CTID string or integer into its component parts.</div><div class="ttdef"><b>Definition</b> <a href="CTID_8h_source.html#l00083">CTID.h:83</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="algorithm_8h_source.html#l00025">algorithm.h:25</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">ripple::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00135">ErrorCodes.h:135</a></div></div> <div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">ripple::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00135">ErrorCodes.h:135</a></div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f">ripple::rpcINVALID_LGR_RANGE</a></div><div class="ttdeci">@ rpcINVALID_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00136">ErrorCodes.h:136</a></div></div> <div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f">ripple::rpcINVALID_LGR_RANGE</a></div><div class="ttdeci">@ rpcINVALID_LGR_RANGE</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00136">ErrorCodes.h:136</a></div></div>

View File

@@ -187,9 +187,11 @@ Functions</h2></td></tr>
<tr class="memitem:a2e549c81edcbd0befcfa4ee871c6f27e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classJson_1_1Value.html">Json::Value</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a2e549c81edcbd0befcfa4ee871c6f27e">computeBookChanges</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; L const &gt; const &amp;lpAccepted)</td></tr> <tr class="memitem:a2e549c81edcbd0befcfa4ee871c6f27e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classJson_1_1Value.html">Json::Value</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a2e549c81edcbd0befcfa4ee871c6f27e">computeBookChanges</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; L const &gt; const &amp;lpAccepted)</td></tr>
<tr class="separator:a2e549c81edcbd0befcfa4ee871c6f27e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="separator:a2e549c81edcbd0befcfa4ee871c6f27e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a193a678f625ec77262c8d5f3ca91df03" id="r_a193a678f625ec77262c8d5f3ca91df03"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">encodeCTID</a> (uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</td></tr> <tr class="memitem:a193a678f625ec77262c8d5f3ca91df03" id="r_a193a678f625ec77262c8d5f3ca91df03"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a193a678f625ec77262c8d5f3ca91df03">encodeCTID</a> (uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept</td></tr>
<tr class="memdesc:a193a678f625ec77262c8d5f3ca91df03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encodes ledger sequence, transaction index, and network ID into a CTID string. <br /></td></tr>
<tr class="separator:a193a678f625ec77262c8d5f3ca91df03"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="separator:a193a678f625ec77262c8d5f3ca91df03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4b48e37f1a6940816047cd107faebca" id="r_ae4b48e37f1a6940816047cd107faebca"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr> <tr class="memitem:ae4b48e37f1a6940816047cd107faebca" id="r_ae4b48e37f1a6940816047cd107faebca"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ae4b48e37f1a6940816047cd107faebca"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a>&lt; uint32_t, uint16_t, uint16_t &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">decodeCTID</a> (T const ctid) noexcept</td></tr> <tr class="memitem:ae4b48e37f1a6940816047cd107faebca"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a>&lt; uint32_t, uint16_t, uint16_t &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#ae4b48e37f1a6940816047cd107faebca">decodeCTID</a> (T const ctid) noexcept</td></tr>
<tr class="memdesc:ae4b48e37f1a6940816047cd107faebca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decodes a CTID string or integer into its component parts. <br /></td></tr>
<tr class="separator:ae4b48e37f1a6940816047cd107faebca"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="separator:ae4b48e37f1a6940816047cd107faebca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58fb48a81509167c40346305cea629c5" id="r_a58fb48a81509167c40346305cea629c5"><td class="memTemplParams" colspan="2">template&lt;class GetLedgerIndex , class GetCloseTime &gt; </td></tr> <tr class="memitem:a58fb48a81509167c40346305cea629c5" id="r_a58fb48a81509167c40346305cea629c5"><td class="memTemplParams" colspan="2">template&lt;class GetLedgerIndex , class GetCloseTime &gt; </td></tr>
<tr class="memitem:a58fb48a81509167c40346305cea629c5"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="classripple_1_1STAmount.html">STAmount</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a58fb48a81509167c40346305cea629c5">getDeliveredAmount</a> (GetLedgerIndex const &amp;getLedgerIndex, GetCloseTime const &amp;getCloseTime, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt; const &amp;serializedTx, <a class="el" href="classripple_1_1TxMeta.html">TxMeta</a> const &amp;transactionMeta)</td></tr> <tr class="memitem:a58fb48a81509167c40346305cea629c5"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="classripple_1_1STAmount.html">STAmount</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceripple_1_1RPC.html#a58fb48a81509167c40346305cea629c5">getDeliveredAmount</a> (GetLedgerIndex const &amp;getLedgerIndex, GetCloseTime const &amp;getCloseTime, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt; const &amp;serializedTx, <a class="el" href="classripple_1_1TxMeta.html">TxMeta</a> const &amp;transactionMeta)</td></tr>
@@ -1451,7 +1453,18 @@ template&lt;class L &gt; </div>
</table> </table>
</div><div class="memdoc"> </div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="CTID_8h_source.html#l00043">43</a> of file <a class="el" href="CTID_8h_source.html">CTID.h</a>.</p> <p>Encodes ledger sequence, transaction index, and network ID into a CTID string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ledgerSeq</td><td><a class="el" href="classripple_1_1Ledger.html" title="Holds a ledger.">Ledger</a> sequence number (max 0x0FFF'FFFF). </td></tr>
<tr><td class="paramname">txnIndex</td><td><a class="el" href="classripple_1_1Transaction.html">Transaction</a> index within the ledger (max 0xFFFF). </td></tr>
<tr><td class="paramname">networkID</td><td>Network identifier (max 0xFFFF). </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Optional CTID string in uppercase hexadecimal, or <a class="elRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a> if inputs are out of range. </dd></dl>
<p class="definition">Definition at line <a class="el" href="CTID_8h_source.html#l00053">53</a> of file <a class="el" href="CTID_8h_source.html">CTID.h</a>.</p>
</div> </div>
</div> </div>
@@ -1481,7 +1494,22 @@ template&lt;typename T &gt; </div>
</table> </table>
</div><div class="memdoc"> </div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="CTID_8h_source.html#l00060">60</a> of file <a class="el" href="CTID_8h_source.html">CTID.h</a>.</p> <p>Decodes a CTID string or integer into its component parts. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>Type of the CTID input (string, string_view, char*, integral). </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ctid</td><td>CTID value to decode. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Optional tuple of (ledgerSeq, txnIndex, networkID), or <a class="elRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a> if invalid. </dd></dl>
<p class="definition">Definition at line <a class="el" href="CTID_8h_source.html#l00083">83</a> of file <a class="el" href="CTID_8h_source.html">CTID.h</a>.</p>
</div> </div>
</div> </div>