mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
183 lines
28 KiB
HTML
183 lines
28 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: LedgerHeader.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_90ffdbabf412cfdffe6b2193e0ce938a.html">libxrpl</a></li><li class="navelem"><a class="el" href="dir_4cb643486f27a568a0d40f174f670f35.html">protocol</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">libxrpl/protocol/LedgerHeader.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include <xrpl/basics/Slice.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include <xrpl/basics/chrono.h></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include <xrpl/protocol/LedgerHeader.h></span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpl/protocol/Serializer.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00009" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="namespaceripple.html#ad6ef4b359d5387fe20ce3ca7e3a293e7"> 9</a></span><a class="code hl_function" href="namespaceripple.html#ad6ef4b359d5387fe20ce3ca7e3a293e7">addRaw</a>(<a class="code hl_struct" href="structripple_1_1LedgerHeader.html">LedgerHeader</a> <span class="keyword">const</span>& info, <a class="code hl_class" href="classripple_1_1Serializer.html">Serializer</a>& s, <span class="keywordtype">bool</span> includeHash)</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span>{</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a2aeeb12b01b18876187455f7009f5352">add32</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a233e04cfeb4d879ab8517d8aabb7e38b">seq</a>);</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a58e3966f7e8a8ffd7c9576f401cf8ab0">add64</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ad05c30cddf4e01a449adfa855fdb8b7d">drops</a>.<a class="code hl_function" href="classripple_1_1XRPAmount.html#a8a65b5528d6021159c5b8772aa86cfc1">drops</a>());</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">addBitString</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ab8fd6d4be4001febfe6f2e2b399dfa48">parentHash</a>);</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">addBitString</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ae9093d3962490ede02dd9da5eb597527">txHash</a>);</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">addBitString</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ae2df468f2563d420131543e27231491d">accountHash</a>);</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a2aeeb12b01b18876187455f7009f5352">add32</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#acbaff4abb7243e02f45e63bd19843aa9">parentCloseTime</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/chrono/time_point/time_since_epoch.html">time_since_epoch</a>().count());</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a2aeeb12b01b18876187455f7009f5352">add32</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a3f117cf9d4ccb20b5ba15d8639540707">closeTime</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/chrono/time_point/time_since_epoch.html">time_since_epoch</a>().count());</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#ab6de064efbc9b2efaeff2b069a02b644">add8</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ab0b35abca886a06b38eead7b84cba8c3">closeTimeResolution</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/chrono/duration/count.html">count</a>());</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#ab6de064efbc9b2efaeff2b069a02b644">add8</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a9808a73e7430aff3c1590d4ae552f620">closeFlags</a>);</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">if</span> (includeHash)</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> s.<a class="code hl_function" href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">addBitString</a>(info.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#aed3c6b7c8a2f7b4815507ff942f94fa8">hash</a>);</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>LedgerHeader</div>
|
|
<div class="foldopen" id="foldopen00026" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="namespaceripple.html#ae38c39246f1566a67d674d40ced5a30b"> 26</a></span><a class="code hl_function" href="namespaceripple.html#ae38c39246f1566a67d674d40ced5a30b">deserializeHeader</a>(<a class="code hl_class" href="classripple_1_1Slice.html">Slice</a> data, <span class="keywordtype">bool</span> hasHash)</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>{</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_class" href="classripple_1_1SerialIter.html">SerialIter</a> sit(data.data(), data.size());</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <a class="code hl_struct" href="structripple_1_1LedgerHeader.html">LedgerHeader</a> header;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a233e04cfeb4d879ab8517d8aabb7e38b">seq</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#aba6df51d44a50b1cfdc114e89456147a">get32</a>();</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ad05c30cddf4e01a449adfa855fdb8b7d">drops</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#af720e6387dcaba61af9c9c724e33097e">get64</a>();</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ab8fd6d4be4001febfe6f2e2b399dfa48">parentHash</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#ae012cfa83bb44253a59d66bf89dfdf96">get256</a>();</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ae9093d3962490ede02dd9da5eb597527">txHash</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#ae012cfa83bb44253a59d66bf89dfdf96">get256</a>();</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ae2df468f2563d420131543e27231491d">accountHash</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#ae012cfa83bb44253a59d66bf89dfdf96">get256</a>();</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#acbaff4abb7243e02f45e63bd19843aa9">parentCloseTime</a> =</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a>{<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a>{sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#aba6df51d44a50b1cfdc114e89456147a">get32</a>()}};</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a3f117cf9d4ccb20b5ba15d8639540707">closeTime</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/time_point.html">NetClock::time_point</a>{<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a>{sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#aba6df51d44a50b1cfdc114e89456147a">get32</a>()}};</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#ab0b35abca886a06b38eead7b84cba8c3">closeTimeResolution</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">NetClock::duration</a>{sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#abd5f83aa8b3943ca9cbfa005aaa33734">get8</a>()};</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#a9808a73e7430aff3c1590d4ae552f620">closeFlags</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#abd5f83aa8b3943ca9cbfa005aaa33734">get8</a>();</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">if</span> (hasHash)</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> header.<a class="code hl_variable" href="structripple_1_1LedgerHeader.html#aed3c6b7c8a2f7b4815507ff942f94fa8">hash</a> = sit.<a class="code hl_function" href="classripple_1_1SerialIter.html#ae012cfa83bb44253a59d66bf89dfdf96">get256</a>();</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">return</span> header;</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>LedgerHeader</div>
|
|
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="namespaceripple.html#a022d9bbb24b2a476e64e282e9876ca93"> 50</a></span><a class="code hl_function" href="namespaceripple.html#a022d9bbb24b2a476e64e282e9876ca93">deserializePrefixedHeader</a>(<a class="code hl_class" href="classripple_1_1Slice.html">Slice</a> data, <span class="keywordtype">bool</span> hasHash)</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>{</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceripple.html#ae38c39246f1566a67d674d40ced5a30b">deserializeHeader</a>(data + 4, hasHash);</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>} <span class="comment">// namespace ripple</span></div>
|
|
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00326">Serializer.h:327</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SerialIter_html_aba6df51d44a50b1cfdc114e89456147a"><div class="ttname"><a href="classripple_1_1SerialIter.html#aba6df51d44a50b1cfdc114e89456147a">ripple::SerialIter::get32</a></div><div class="ttdeci">std::uint32_t get32()</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8cpp_source.html#l00364">Serializer.cpp:364</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SerialIter_html_abd5f83aa8b3943ca9cbfa005aaa33734"><div class="ttname"><a href="classripple_1_1SerialIter.html#abd5f83aa8b3943ca9cbfa005aaa33734">ripple::SerialIter::get8</a></div><div class="ttdeci">unsigned char get8()</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8cpp_source.html#l00340">Serializer.cpp:340</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SerialIter_html_ae012cfa83bb44253a59d66bf89dfdf96"><div class="ttname"><a href="classripple_1_1SerialIter.html#ae012cfa83bb44253a59d66bf89dfdf96">ripple::SerialIter::get256</a></div><div class="ttdeci">uint256 get256()</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00402">Serializer.h:402</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SerialIter_html_af720e6387dcaba61af9c9c724e33097e"><div class="ttname"><a href="classripple_1_1SerialIter.html#af720e6387dcaba61af9c9c724e33097e">ripple::SerialIter::get64</a></div><div class="ttdeci">std::uint64_t get64()</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8cpp_source.html#l00377">Serializer.cpp:377</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00021">Serializer.h:22</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html_a2aeeb12b01b18876187455f7009f5352"><div class="ttname"><a href="classripple_1_1Serializer.html#a2aeeb12b01b18876187455f7009f5352">ripple::Serializer::add32</a></div><div class="ttdeci">int add32(T i)</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00075">Serializer.h:75</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html_a58e3966f7e8a8ffd7c9576f401cf8ab0"><div class="ttname"><a href="classripple_1_1Serializer.html#a58e3966f7e8a8ffd7c9576f401cf8ab0">ripple::Serializer::add64</a></div><div class="ttdeci">int add64(T i)</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00093">Serializer.h:93</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html_a96daec54ca0c8ec7f6e7e683e9abbe0e"><div class="ttname"><a href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">ripple::Serializer::addBitString</a></div><div class="ttdeci">int addBitString(base_uint< Bits, Tag > const &v)</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00112">Serializer.h:112</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Serializer_html_ab6de064efbc9b2efaeff2b069a02b644"><div class="ttname"><a href="classripple_1_1Serializer.html#ab6de064efbc9b2efaeff2b069a02b644">ripple::Serializer::add8</a></div><div class="ttdeci">int add8(unsigned char i)</div><div class="ttdef"><b>Definition</b> <a href="Serializer_8cpp_source.html#l00143">Serializer.cpp:143</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#l00026">Slice.h:27</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1XRPAmount_html_a8a65b5528d6021159c5b8772aa86cfc1"><div class="ttname"><a href="classripple_1_1XRPAmount.html#a8a65b5528d6021159c5b8772aa86cfc1">ripple::XRPAmount::drops</a></div><div class="ttdeci">constexpr value_type drops() const</div><div class="ttdoc">Returns the number of drops.</div><div class="ttdef"><b>Definition</b> <a href="XRPAmount_8h_source.html#l00158">XRPAmount.h:158</a></div></div>
|
|
<div class="ttc" id="acount_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration/count.html">std::chrono::duration::count</a></div><div class="ttdeci">T count(T... args)</div></div>
|
|
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</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#l00006">algorithm.h:6</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a022d9bbb24b2a476e64e282e9876ca93"><div class="ttname"><a href="namespaceripple.html#a022d9bbb24b2a476e64e282e9876ca93">ripple::deserializePrefixedHeader</a></div><div class="ttdeci">LedgerHeader deserializePrefixedHeader(Slice data, bool hasHash=false)</div><div class="ttdoc">Deserialize a ledger header (prefixed with 4 bytes) from a byte array.</div><div class="ttdef"><b>Definition</b> <a href="libxrpl_2protocol_2LedgerHeader_8cpp_source.html#l00050">libxrpl/protocol/LedgerHeader.cpp:50</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ad6ef4b359d5387fe20ce3ca7e3a293e7"><div class="ttname"><a href="namespaceripple.html#ad6ef4b359d5387fe20ce3ca7e3a293e7">ripple::addRaw</a></div><div class="ttdeci">void addRaw(LedgerHeader const &, Serializer &, bool includeHash=false)</div><div class="ttdef"><b>Definition</b> <a href="libxrpl_2protocol_2LedgerHeader_8cpp_source.html#l00009">libxrpl/protocol/LedgerHeader.cpp:9</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ae38c39246f1566a67d674d40ced5a30b"><div class="ttname"><a href="namespaceripple.html#ae38c39246f1566a67d674d40ced5a30b">ripple::deserializeHeader</a></div><div class="ttdeci">LedgerHeader deserializeHeader(Slice data, bool hasHash=false)</div><div class="ttdoc">Deserialize a ledger header from a byte array.</div><div class="ttdef"><b>Definition</b> <a href="libxrpl_2protocol_2LedgerHeader_8cpp_source.html#l00026">libxrpl/protocol/LedgerHeader.cpp:26</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html"><div class="ttname"><a href="structripple_1_1LedgerHeader.html">ripple::LedgerHeader</a></div><div class="ttdoc">Information about the notional ledger backing the view.</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00014">LedgerHeader.h:15</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_a233e04cfeb4d879ab8517d8aabb7e38b"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#a233e04cfeb4d879ab8517d8aabb7e38b">ripple::LedgerHeader::seq</a></div><div class="ttdeci">LedgerIndex seq</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00022">LedgerHeader.h:22</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_a3f117cf9d4ccb20b5ba15d8639540707"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#a3f117cf9d4ccb20b5ba15d8639540707">ripple::LedgerHeader::closeTime</a></div><div class="ttdeci">NetClock::time_point closeTime</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00053">LedgerHeader.h:53</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_a9808a73e7430aff3c1590d4ae552f620"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#a9808a73e7430aff3c1590d4ae552f620">ripple::LedgerHeader::closeFlags</a></div><div class="ttdeci">int closeFlags</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00044">LedgerHeader.h:44</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_ab0b35abca886a06b38eead7b84cba8c3"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#ab0b35abca886a06b38eead7b84cba8c3">ripple::LedgerHeader::closeTimeResolution</a></div><div class="ttdeci">NetClock::duration closeTimeResolution</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00047">LedgerHeader.h:47</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_ab8fd6d4be4001febfe6f2e2b399dfa48"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#ab8fd6d4be4001febfe6f2e2b399dfa48">ripple::LedgerHeader::parentHash</a></div><div class="ttdeci">uint256 parentHash</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00033">LedgerHeader.h:33</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_acbaff4abb7243e02f45e63bd19843aa9"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#acbaff4abb7243e02f45e63bd19843aa9">ripple::LedgerHeader::parentCloseTime</a></div><div class="ttdeci">NetClock::time_point parentCloseTime</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00023">LedgerHeader.h:23</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_ad05c30cddf4e01a449adfa855fdb8b7d"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#ad05c30cddf4e01a449adfa855fdb8b7d">ripple::LedgerHeader::drops</a></div><div class="ttdeci">XRPAmount drops</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00035">LedgerHeader.h:35</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_ae2df468f2563d420131543e27231491d"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#ae2df468f2563d420131543e27231491d">ripple::LedgerHeader::accountHash</a></div><div class="ttdeci">uint256 accountHash</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00032">LedgerHeader.h:32</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_ae9093d3962490ede02dd9da5eb597527"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#ae9093d3962490ede02dd9da5eb597527">ripple::LedgerHeader::txHash</a></div><div class="ttdeci">uint256 txHash</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00031">LedgerHeader.h:31</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1LedgerHeader_html_aed3c6b7c8a2f7b4815507ff942f94fa8"><div class="ttname"><a href="structripple_1_1LedgerHeader.html#aed3c6b7c8a2f7b4815507ff942f94fa8">ripple::LedgerHeader::hash</a></div><div class="ttdeci">uint256 hash</div><div class="ttdef"><b>Definition</b> <a href="LedgerHeader_8h_source.html#l00030">LedgerHeader.h:30</a></div></div>
|
|
<div class="ttc" id="atime_point_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/time_point.html">std::chrono::time_point</a></div></div>
|
|
<div class="ttc" id="atime_since_epoch_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/time_point/time_since_epoch.html">std::chrono::time_point::time_since_epoch</a></div><div class="ttdeci">T time_since_epoch(T... args)</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|