mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
deploy: 023f5704d0
This commit is contained in:
@@ -100,8 +100,8 @@ $(function() {
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstring.html">cstring</a>></span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a>></span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>></span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/vector.html">vector</a>></span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/vector.html">vector</a>></span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
||||
@@ -116,12 +116,12 @@ $(function() {
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classripple_1_1Slice.html#a5a14d5d1e5aac5e2c6300f04709aaa42">Slice</a>() noexcept = default;</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> (<a class="code" href="classripple_1_1Slice.html">Slice</a> const&) noexcept = default;</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a>& operator= (<a class="code" href="classripple_1_1Slice.html">Slice</a> const&) noexcept = default;</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#af0bd936527d4a3ee83733aabe2734641"> 59</a></span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> (<span class="keywordtype">void</span> const* <a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>, <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">size_t</span> <a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>) noexcept</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  : <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> (reinterpret_cast<<a class="code" href="namespacestd.html">std</a>::uint8_t const*>(<a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>))</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  , <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a> (<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>)</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> const&) noexcept = default;</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a>&</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  operator=(<a class="code" href="classripple_1_1Slice.html">Slice</a> const&) noexcept = default;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#af0bd936527d4a3ee83733aabe2734641"> 60</a></span>  <a class="code" href="classripple_1_1Slice.html">Slice</a>(<span class="keywordtype">void</span> const* <a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>, <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">size_t</span> <a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>) noexcept</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  : <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a>(reinterpret_cast<<a class="code" href="namespacestd.html">std</a>::uint8_t const*>(<a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>)), <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>(<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>)</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>  }</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
@@ -151,168 +151,162 @@ $(function() {
|
||||
<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>  </div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a>&</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#ae33433b0d5df247d5f004b9e3d0e38aa"> 103</a></span>  <a class="code" href="classripple_1_1Slice.html#ae33433b0d5df247d5f004b9e3d0e38aa">operator+= </a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n)</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#ae33433b0d5df247d5f004b9e3d0e38aa"> 103</a></span>  <a class="code" href="classripple_1_1Slice.html#ae33433b0d5df247d5f004b9e3d0e38aa">operator+=</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n)</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span> (n > <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>)</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  Throw<std::domain_error> (<span class="stringliteral">"too small"</span>);</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  Throw<std::domain_error>(<span class="stringliteral">"too small"</span>);</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> += n;</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a> -= n;</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</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>  </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a></div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a6bcf94a83d3ec64eebdc564dcd7acf98"> 113</a></span>  <a class="code" href="classripple_1_1Slice.html#a6bcf94a83d3ec64eebdc564dcd7acf98">operator+ </a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a6bcf94a83d3ec64eebdc564dcd7acf98"> 113</a></span>  <a class="code" href="classripple_1_1Slice.html#a6bcf94a83d3ec64eebdc564dcd7acf98">operator+</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> temp = *<span class="keyword">this</span>;</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> temp += n;</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679"> 122</a></span>  <a class="code" href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679">begin</a>() const noexcept</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="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a>;</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>  </div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6"> 128</a></span>  <a class="code" href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6">cbegin</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  {</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a>;</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  }</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3"> 134</a></span>  <a class="code" href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3">end</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  {</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> + <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>;</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a"> 140</a></span>  <a class="code" href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a">cend</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  {</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> + <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</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> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">template</span> <<span class="keyword">class</span> Hasher></div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword">inline</span></div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0"> 151</a></span> <a class="code" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">hash_append</a> (Hasher& h, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& v)</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>  h(v.<a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>(), v.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>());</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</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="keyword">inline</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="namespaceripple.html#ab831408b372c01655cbfbac8cc356fdf"> 158</a></span> <a class="code" href="namespaceripple.html#a4a7f562868748b9246dbcab39091021c">operator== </a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> {</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">if</span> (lhs.size() != rhs.size())</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679"> 121</a></span>  <a class="code" href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679">begin</a>() const noexcept</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>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a>;</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>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6"> 127</a></span>  <a class="code" href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6">cbegin</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a>;</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>  </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3"> 133</a></span>  <a class="code" href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3">end</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> + <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>;</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>  </div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classripple_1_1Dir_1_1const__iterator.html">const_iterator</a></div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a"> 139</a></span>  <a class="code" href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a">cend</a>() const noexcept</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  {</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">data_</a> + <a class="code" href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">size_</a>;</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> };</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment">//------------------------------------------------------------------------------</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> <span class="keyword">template</span> <<span class="keyword">class</span> Hasher></div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">inline</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0"> 149</a></span> <a class="code" href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">hash_append</a>(Hasher& h, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& v)</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  h(v.<a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>(), v.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>());</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>  </div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespaceripple.html#ab831408b372c01655cbfbac8cc356fdf"> 155</a></span> <a class="code" href="namespaceripple.html#a4a7f562868748b9246dbcab39091021c">operator==</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">if</span> (lhs.size() != rhs.size())</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">if</span> (lhs.size() == 0)</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</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="keywordflow">if</span> (lhs.size() == 0)</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">return</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcmp.html">std::memcmp</a>(lhs.data(), rhs.data(), lhs.size()) == 0;</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>  </div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/byte/memcmp.html">std::memcmp</a>(lhs.data(), rhs.data(), lhs.size()) == 0;</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>  </div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">inline</span></div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0f26969dec9098e48f774863ff686047"> 171</a></span> <a class="code" href="namespaceripple.html#a068a05c4d658a764ce2be1810e1779fd">operator!= </a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> {</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> }</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="keyword">inline</span></div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="namespaceripple.html#ab06a7c4d14d99773c29bcfbd0bf81d34"> 178</a></span> <a class="code" href="namespaceripple.html#a085f3979afbbdb2fb60e4b729357ffc6">operator< </a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</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>  <span class="keywordflow">return</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/lexicographical_compare.html">std::lexicographical_compare</a>(</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  lhs.data(), lhs.data() + lhs.size(),</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  rhs.data(), rhs.data() + rhs.size());</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</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> <span class="keyword">template</span> <<span class="keyword">class</span> Stream></div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8948333dbab2d38fede9133ba2cd44b4"> 187</a></span> Stream& <a class="code" href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">operator<<</a>(Stream& s, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& v)</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>  s << <a class="code" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(v);</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">return</span> s;</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>  </div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, std::<span class="keywordtype">size_t</span> N></div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, char>::value</a> ||</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, unsigned char>::value</a>,</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  Slice</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> ></div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce"> 199</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array<T, N></a> <span class="keyword">const</span>& a)</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> {</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(a.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array/data.html">data</a>(), a.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> }</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> Alloc></div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, char>::value</a> ||</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, unsigned char>::value</a>,</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  Slice</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> ></div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8856d5d3007b369489cf41919e7fbebd"> 210</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<T, Alloc></a> <span class="keyword">const</span>& v)</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="namespaceripple.html#a0f26969dec9098e48f774863ff686047"> 167</a></span> <a class="code" href="namespaceripple.html#a068a05c4d658a764ce2be1810e1779fd">operator!=</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> {</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">return</span> !(lhs == rhs);</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>  </div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="namespaceripple.html#ab06a7c4d14d99773c29bcfbd0bf81d34"> 173</a></span> <a class="code" href="namespaceripple.html#a085f3979afbbdb2fb60e4b729357ffc6">operator<</a>(<a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& lhs, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& rhs) noexcept</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> {</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/lexicographical_compare.html">std::lexicographical_compare</a>(</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  lhs.data(),</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  lhs.data() + lhs.size(),</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  rhs.data(),</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  rhs.data() + rhs.size());</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</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> <span class="keyword">template</span> <<span class="keyword">class</span> Stream></div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> Stream&</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8948333dbab2d38fede9133ba2cd44b4"> 184</a></span> <a class="code" href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">operator<<</a>(Stream& s, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& v)</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>  s << <a class="code" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(v);</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> s;</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>  </div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, std::<span class="keywordtype">size_t</span> N></div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, char>::value</a> || <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, unsigned char>::value</a>,</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  Slice></div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce"> 194</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array<T, N></a> <span class="keyword">const</span>& a)</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> {</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(a.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array/data.html">data</a>(), a.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> }</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> Alloc></div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a><</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, char>::value</a> || <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<T, unsigned char>::value</a>,</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  Slice></div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8856d5d3007b369489cf41919e7fbebd"> 203</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<T, Alloc></a> <span class="keyword">const</span>& v)</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> {</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(v.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/data.html">data</a>(), v.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">template</span> <<span class="keyword">class</span> Traits, <span class="keyword">class</span> Alloc></div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> Slice</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="namespaceripple.html#aea9e5d1bedc6417fabcbcfc6bb30c7da"> 210</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::basic_string<char, Traits, Alloc></a> <span class="keyword">const</span>& s)</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> {</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(v.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/data.html">data</a>(), v.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/data.html">data</a>(), s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> }</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="keyword">template</span> <<span class="keyword">class</span> Traits, <span class="keyword">class</span> Alloc></div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> Slice</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="namespaceripple.html#aea9e5d1bedc6417fabcbcfc6bb30c7da"> 217</a></span> <a class="code" href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">makeSlice</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::basic_string<char, Traits, Alloc></a> <span class="keyword">const</span>& s)</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> {</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Slice.html">Slice</a>(s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/data.html">data</a>(), s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>());</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> }</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> } <span class="comment">// ripple</span></div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor">#endif</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#l00077">Slice.h:77</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_ae33433b0d5df247d5f004b9e3d0e38aa"><div class="ttname"><a href="classripple_1_1Slice.html#ae33433b0d5df247d5f004b9e3d0e38aa">ripple::Slice::operator+=</a></div><div class="ttdeci">Slice & operator+=(std::size_t n)</div><div class="ttdoc">Advance the buffer.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00103">Slice.h:103</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</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aabe37451093c21757855542d68fba3ce"><div class="ttname"><a href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">ripple::makeSlice</a></div><div class="ttdeci">std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00199">Slice.h:199</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_aabe37451093c21757855542d68fba3ce"><div class="ttname"><a href="namespaceripple.html#aabe37451093c21757855542d68fba3ce">ripple::makeSlice</a></div><div class="ttdeci">std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00194">Slice.h:194</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Dir_1_1const__iterator_html"><div class="ttname"><a href="classripple_1_1Dir_1_1const__iterator.html">ripple::Dir::const_iterator</a></div><div class="ttdef"><b>Definition:</b> <a href="Directory_8h_source.html#l00049">Directory.h:49</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::basic_string</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="acstring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstring.html">cstring</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a5a14d5d1e5aac5e2c6300f04709aaa42"><div class="ttname"><a href="classripple_1_1Slice.html#a5a14d5d1e5aac5e2c6300f04709aaa42">ripple::Slice::Slice</a></div><div class="ttdeci">Slice() noexcept=default</div><div class="ttdoc">Default constructed Slice has length 0.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a3dfd26fc868ea74a200ef6ad27298b9a"><div class="ttname"><a href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a">ripple::Slice::cend</a></div><div class="ttdeci">const_iterator cend() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00140">Slice.h:140</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a3dfd26fc868ea74a200ef6ad27298b9a"><div class="ttname"><a href="classripple_1_1Slice.html#a3dfd26fc868ea74a200ef6ad27298b9a">ripple::Slice::cend</a></div><div class="ttdeci">const_iterator cend() const noexcept</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_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#l00043">Slice.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a6bcf94a83d3ec64eebdc564dcd7acf98"><div class="ttname"><a href="classripple_1_1Slice.html#a6bcf94a83d3ec64eebdc564dcd7acf98">ripple::Slice::operator+</a></div><div class="ttdeci">Slice operator+(std::size_t n) const</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00113">Slice.h:113</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/vector.html">vector</a></div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array/size.html">std::array::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a40d87684d01acbc62ec048ffae21b7d3"><div class="ttname"><a href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3">ripple::Slice::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00134">Slice.h:134</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a40d87684d01acbc62ec048ffae21b7d3"><div class="ttname"><a href="classripple_1_1Slice.html#a40d87684d01acbc62ec048ffae21b7d3">ripple::Slice::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00133">Slice.h:133</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a350ba5f9052ff273a428c3ce07b21e07"><div class="ttname"><a href="classripple_1_1Slice.html#a350ba5f9052ff273a428c3ce07b21e07">ripple::Slice::data_</a></div><div class="ttdeci">std::uint8_t const * data_</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00046">Slice.h:46</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a9d49708cd15d24841b78dc0a9ecaac26"><div class="ttname"><a href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">ripple::Slice::data</a></div><div class="ttdeci">std::uint8_t const * data() const noexcept</div><div class="ttdoc">Return a pointer to beginning of the storage.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00087">Slice.h:87</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a89da47ac8d086cb6ecd1858e922657a6"><div class="ttname"><a href="classripple_1_1Slice.html#a89da47ac8d086cb6ecd1858e922657a6">ripple::Slice::operator[]</a></div><div class="ttdeci">std::uint8_t operator[](std::size_t i) const noexcept</div><div class="ttdoc">Access raw bytes.</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00094">Slice.h:94</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#l00067">Slice.h:67</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2cbc273400d06e5ff80501de15410e3"><div class="ttname"><a href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">ripple::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &os, TOffer< TIn, TOut > const &offer)</div><div class="ttdef"><b>Definition:</b> <a href="Offer_8h_source.html#l00237">Offer.h:237</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ad2cbc273400d06e5ff80501de15410e3"><div class="ttname"><a href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">ripple::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &os, TOffer< TIn, TOut > const &offer)</div><div class="ttdef"><b>Definition:</b> <a href="Offer_8h_source.html#l00242">Offer.h:242</a></div></div>
|
||||
<div class="ttc" id="aalgorithm_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4a7f562868748b9246dbcab39091021c"><div class="ttname"><a href="namespaceripple.html#a4a7f562868748b9246dbcab39091021c">ripple::operator==</a></div><div class="ttdeci">bool operator==(Manifest const &lhs, Manifest const &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="Manifest_8h_source.html#l00148">Manifest.h:148</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a4a7f562868748b9246dbcab39091021c"><div class="ttname"><a href="namespaceripple.html#a4a7f562868748b9246dbcab39091021c">ripple::operator==</a></div><div class="ttdeci">bool operator==(Manifest const &lhs, Manifest const &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="Manifest_8h_source.html#l00155">Manifest.h:155</a></div></div>
|
||||
<div class="ttc" id="astdexcept_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a4a1dc9f632889c271419c35318124001"><div class="ttname"><a href="classripple_1_1Slice.html#a4a1dc9f632889c271419c35318124001">ripple::Slice::size_</a></div><div class="ttdeci">std::size_t size_</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00047">Slice.h:47</a></div></div>
|
||||
<div class="ttc" id="aenable_if_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a></div></div>
|
||||
<div class="ttc" id="alexicographical_compare_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/lexicographical_compare.html">std::lexicographical_compare</a></div><div class="ttdeci">T lexicographical_compare(T... args)</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a068a05c4d658a764ce2be1810e1779fd"><div class="ttname"><a href="namespaceripple.html#a068a05c4d658a764ce2be1810e1779fd">ripple::operator!=</a></div><div class="ttdeci">bool operator!=(Manifest const &lhs, Manifest const &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="Manifest_8h_source.html#l00161">Manifest.h:161</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a068a05c4d658a764ce2be1810e1779fd"><div class="ttname"><a href="namespaceripple.html#a068a05c4d658a764ce2be1810e1779fd">ripple::operator!=</a></div><div class="ttdeci">bool operator!=(Manifest const &lhs, Manifest const &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="Manifest_8h_source.html#l00165">Manifest.h:165</a></div></div>
|
||||
<div class="ttc" id="aarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/array.html">array</a></div></div>
|
||||
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a27b912d49c4818a295425d1332e3c877"><div class="ttname"><a href="classripple_1_1Slice.html#a27b912d49c4818a295425d1332e3c877">ripple::Slice::const_iterator</a></div><div class="ttdeci">std::uint8_t const * const_iterator</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00050">Slice.h:50</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a6bd58d1949a0ff8d1ff226f1a8a82fc6"><div class="ttname"><a href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6">ripple::Slice::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00128">Slice.h:128</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a6bd58d1949a0ff8d1ff226f1a8a82fc6"><div class="ttname"><a href="classripple_1_1Slice.html#a6bd58d1949a0ff8d1ff226f1a8a82fc6">ripple::Slice::cbegin</a></div><div class="ttdeci">const_iterator cbegin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00127">Slice.h:127</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="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
|
||||
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a06da0e52773c5c0841994317a3d5e3d0"><div class="ttname"><a href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">ripple::hash_append</a></div><div class="ttdeci">void hash_append(Hasher &h, Slice const &v)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00151">Slice.h:151</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a06da0e52773c5c0841994317a3d5e3d0"><div class="ttname"><a href="namespaceripple.html#a06da0e52773c5c0841994317a3d5e3d0">ripple::hash_append</a></div><div class="ttdeci">void hash_append(Hasher &h, Slice const &v)</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00149">Slice.h:149</a></div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a86e358ce3f06ff049af13c2342791cf8"><div class="ttname"><a href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">ripple::strHex</a></div><div class="ttdeci">std::string strHex(FwdIt begin, FwdIt end)</div><div class="ttdef"><b>Definition:</b> <a href="strHex_8h_source.html#l00070">strHex.h:70</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a86e358ce3f06ff049af13c2342791cf8"><div class="ttname"><a href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">ripple::strHex</a></div><div class="ttdeci">std::string strHex(FwdIt begin, FwdIt end)</div><div class="ttdef"><b>Definition:</b> <a href="strHex_8h_source.html#l00067">strHex.h:67</a></div></div>
|
||||
<div class="ttc" id="amemcmp_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/byte/memcmp.html">std::memcmp</a></div><div class="ttdeci">T memcmp(T... args)</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a085f3979afbbdb2fb60e4b729357ffc6"><div class="ttname"><a href="namespaceripple.html#a085f3979afbbdb2fb60e4b729357ffc6">ripple::operator<</a></div><div class="ttdeci">bool operator<(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00456">base_uint.h:456</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a085f3979afbbdb2fb60e4b729357ffc6"><div class="ttname"><a href="namespaceripple.html#a085f3979afbbdb2fb60e4b729357ffc6">ripple::operator<</a></div><div class="ttdeci">bool operator<(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00514">base_uint.h:514</a></div></div>
|
||||
<div class="ttc" id="adata_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array/data.html">std::array::data</a></div><div class="ttdeci">T data(T... args)</div></div>
|
||||
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a3ae79b3980ca850a6070e9dda9c19679"><div class="ttname"><a href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679">ripple::Slice::begin</a></div><div class="ttdeci">const_iterator begin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00122">Slice.h:122</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Slice_html_a3ae79b3980ca850a6070e9dda9c19679"><div class="ttname"><a href="classripple_1_1Slice.html#a3ae79b3980ca850a6070e9dda9c19679">ripple::Slice::begin</a></div><div class="ttdeci">const_iterator begin() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="Slice_8h_source.html#l00121">Slice.h:121</a></div></div>
|
||||
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user