Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: PacketBuffer Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_packet_buffer.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_1_1profiling_1_1_packet_buffer-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">PacketBuffer Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_packet_buffer_8hpp_source.xhtml">PacketBuffer.hpp</a>></code></p> |
| 106 | <div class="dynheader"> |
| 107 | Inheritance diagram for PacketBuffer:</div> |
| 108 | <div class="dyncontent"> |
| 109 | <div class="center"> |
| 110 | <img src="classarmnn_1_1profiling_1_1_packet_buffer.png" usemap="#PacketBuffer_map" alt=""/> |
| 111 | <map id="PacketBuffer_map" name="PacketBuffer_map"> |
| 112 | <area href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml" alt="IPacketBuffer" shape="rect" coords="0,56,144,80"/> |
| 113 | <area href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml" alt="IReadOnlyPacketBuffer" shape="rect" coords="0,0,144,24"/> |
| 114 | </map> |
| 115 | </div></div> |
| 116 | <table class="memberdecls"> |
| 117 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 118 | Public Member Functions</h2></td></tr> |
| 119 | <tr class="memitem:aa4f3bf029a40855e07f772ab7b25ac05"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#aa4f3bf029a40855e07f772ab7b25ac05">PacketBuffer</a> (unsigned int maxSize)</td></tr> |
| 120 | <tr class="separator:aa4f3bf029a40855e07f772ab7b25ac05"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:aa70fd746e7f61a0b0ebc95769f48e5e6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#aa70fd746e7f61a0b0ebc95769f48e5e6">~PacketBuffer</a> ()</td></tr> |
| 122 | <tr class="separator:aa70fd746e7f61a0b0ebc95769f48e5e6"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a58557b0c5413d3c20ddd80e31eaccaed"><td class="memItemLeft" align="right" valign="top">const unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#a58557b0c5413d3c20ddd80e31eaccaed">GetReadableData</a> () const override</td></tr> |
| 124 | <tr class="separator:a58557b0c5413d3c20ddd80e31eaccaed"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:ab03338cef0f6b48d46effb2c2a64407d"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#ab03338cef0f6b48d46effb2c2a64407d">GetSize</a> () const override</td></tr> |
| 126 | <tr class="separator:ab03338cef0f6b48d46effb2c2a64407d"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:aa630bd4c9ada8ab204fbb42651b10613"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#aa630bd4c9ada8ab204fbb42651b10613">MarkRead</a> () override</td></tr> |
| 128 | <tr class="separator:aa630bd4c9ada8ab204fbb42651b10613"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a1d7238f289009294f40b0b2bcb8d594f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#a1d7238f289009294f40b0b2bcb8d594f">Commit</a> (unsigned int size) override</td></tr> |
| 130 | <tr class="separator:a1d7238f289009294f40b0b2bcb8d594f"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a1a5dddc8911f6189f9ca01394c59faaf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#a1a5dddc8911f6189f9ca01394c59faaf">Release</a> () override</td></tr> |
| 132 | <tr class="separator:a1a5dddc8911f6189f9ca01394c59faaf"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a229b663a5b1c2dd9b97ded0513771fc9"><td class="memItemLeft" align="right" valign="top">unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml#a229b663a5b1c2dd9b97ded0513771fc9">GetWritableData</a> () override</td></tr> |
| 134 | <tr class="separator:a229b663a5b1c2dd9b97ded0513771fc9"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a></td></tr> |
| 136 | <tr class="memitem:a9ded593bdc39f70c3e135e649ab3e42e inherit pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml#a9ded593bdc39f70c3e135e649ab3e42e">~IPacketBuffer</a> ()</td></tr> |
| 137 | <tr class="separator:a9ded593bdc39f70c3e135e649ab3e42e inherit pub_methods_classarmnn_1_1profiling_1_1_i_packet_buffer"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml">IReadOnlyPacketBuffer</a></td></tr> |
| 139 | <tr class="memitem:a040a515076ec53aa5e3a933d7c7ce43c inherit pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml#a040a515076ec53aa5e3a933d7c7ce43c">~IReadOnlyPacketBuffer</a> ()</td></tr> |
| 140 | <tr class="separator:a040a515076ec53aa5e3a933d7c7ce43c inherit pub_methods_classarmnn_1_1profiling_1_1_i_read_only_packet_buffer"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | </table> |
| 142 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 143 | <div class="textblock"> |
| 144 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00018">18</a> of file <a class="el" href="_packet_buffer_8hpp_source.xhtml">PacketBuffer.hpp</a>.</p> |
| 145 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 146 | <a id="aa4f3bf029a40855e07f772ab7b25ac05"></a> |
| 147 | <h2 class="memtitle"><span class="permalink"><a href="#aa4f3bf029a40855e07f772ab7b25ac05">◆ </a></span>PacketBuffer()</h2> |
| 148 | |
| 149 | <div class="memitem"> |
| 150 | <div class="memproto"> |
| 151 | <table class="memname"> |
| 152 | <tr> |
| 153 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml">PacketBuffer</a> </td> |
| 154 | <td>(</td> |
| 155 | <td class="paramtype">unsigned int </td> |
| 156 | <td class="paramname"><em>maxSize</em></td><td>)</td> |
| 157 | <td></td> |
| 158 | </tr> |
| 159 | </table> |
| 160 | </div><div class="memdoc"> |
| 161 | |
| 162 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00016">16</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 163 | <div class="fragment"><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  : m_MaxSize(maxSize)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  , m_Size(0)</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  m_Data = std::make_unique<unsigned char[]>(m_MaxSize);</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div></div><!-- fragment --> |
| 164 | </div> |
| 165 | </div> |
| 166 | <a id="aa70fd746e7f61a0b0ebc95769f48e5e6"></a> |
| 167 | <h2 class="memtitle"><span class="permalink"><a href="#aa70fd746e7f61a0b0ebc95769f48e5e6">◆ </a></span>~PacketBuffer()</h2> |
| 168 | |
| 169 | <div class="memitem"> |
| 170 | <div class="memproto"> |
| 171 | <table class="mlabels"> |
| 172 | <tr> |
| 173 | <td class="mlabels-left"> |
| 174 | <table class="memname"> |
| 175 | <tr> |
| 176 | <td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml">PacketBuffer</a> </td> |
| 177 | <td>(</td> |
| 178 | <td class="paramname"></td><td>)</td> |
| 179 | <td></td> |
| 180 | </tr> |
| 181 | </table> |
| 182 | </td> |
| 183 | <td class="mlabels-right"> |
| 184 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 185 | </tr> |
| 186 | </table> |
| 187 | </div><div class="memdoc"> |
| 188 | |
| 189 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">23</a> of file <a class="el" href="_packet_buffer_8hpp_source.xhtml">PacketBuffer.hpp</a>.</p> |
| 190 | |
| 191 | <p class="reference">References <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00038">PacketBuffer::Commit()</a>, <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00023">PacketBuffer::GetReadableData()</a>, <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00028">PacketBuffer::GetSize()</a>, <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00053">PacketBuffer::GetWritableData()</a>, <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00033">PacketBuffer::MarkRead()</a>, and <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00048">PacketBuffer::Release()</a>.</p> |
| 192 | <div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {}</div></div><!-- fragment --> |
| 193 | </div> |
| 194 | </div> |
| 195 | <h2 class="groupheader">Member Function Documentation</h2> |
| 196 | <a id="a1d7238f289009294f40b0b2bcb8d594f"></a> |
| 197 | <h2 class="memtitle"><span class="permalink"><a href="#a1d7238f289009294f40b0b2bcb8d594f">◆ </a></span>Commit()</h2> |
| 198 | |
| 199 | <div class="memitem"> |
| 200 | <div class="memproto"> |
| 201 | <table class="mlabels"> |
| 202 | <tr> |
| 203 | <td class="mlabels-left"> |
| 204 | <table class="memname"> |
| 205 | <tr> |
| 206 | <td class="memname">void Commit </td> |
| 207 | <td>(</td> |
| 208 | <td class="paramtype">unsigned int </td> |
| 209 | <td class="paramname"><em>size</em></td><td>)</td> |
| 210 | <td></td> |
| 211 | </tr> |
| 212 | </table> |
| 213 | </td> |
| 214 | <td class="mlabels-right"> |
| 215 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 216 | </tr> |
| 217 | </table> |
| 218 | </div><div class="memdoc"> |
| 219 | |
| 220 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml#a4586c90cbeb7804b32dad8c1bd6ae242">IPacketBuffer</a>.</p> |
| 221 | |
| 222 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00038">38</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 223 | |
| 224 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 225 | <div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> (size > m_MaxSize)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a>(<span class="stringliteral">"Cannot commit ["</span> + std::to_string(size) +</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="stringliteral">"] bytes which is more than the maximum size of the buffer ["</span> + std::to_string(m_MaxSize) + <span class="stringliteral">"]"</span>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  m_Size = size;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div><div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 226 | </div><!-- fragment --> |
| 227 | </div> |
| 228 | </div> |
| 229 | <a id="a58557b0c5413d3c20ddd80e31eaccaed"></a> |
| 230 | <h2 class="memtitle"><span class="permalink"><a href="#a58557b0c5413d3c20ddd80e31eaccaed">◆ </a></span>GetReadableData()</h2> |
| 231 | |
| 232 | <div class="memitem"> |
| 233 | <div class="memproto"> |
| 234 | <table class="mlabels"> |
| 235 | <tr> |
| 236 | <td class="mlabels-left"> |
| 237 | <table class="memname"> |
| 238 | <tr> |
| 239 | <td class="memname">const unsigned char * GetReadableData </td> |
| 240 | <td>(</td> |
| 241 | <td class="paramname"></td><td>)</td> |
| 242 | <td> const</td> |
| 243 | </tr> |
| 244 | </table> |
| 245 | </td> |
| 246 | <td class="mlabels-right"> |
| 247 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 248 | </tr> |
| 249 | </table> |
| 250 | </div><div class="memdoc"> |
| 251 | |
| 252 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml#a43a27876dafdccf067777f84a97e6664">IReadOnlyPacketBuffer</a>.</p> |
| 253 | |
| 254 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00023">23</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 255 | |
| 256 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 257 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">return</span> m_Data.get();</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</div></div><!-- fragment --> |
| 258 | </div> |
| 259 | </div> |
| 260 | <a id="ab03338cef0f6b48d46effb2c2a64407d"></a> |
| 261 | <h2 class="memtitle"><span class="permalink"><a href="#ab03338cef0f6b48d46effb2c2a64407d">◆ </a></span>GetSize()</h2> |
| 262 | |
| 263 | <div class="memitem"> |
| 264 | <div class="memproto"> |
| 265 | <table class="mlabels"> |
| 266 | <tr> |
| 267 | <td class="mlabels-left"> |
| 268 | <table class="memname"> |
| 269 | <tr> |
| 270 | <td class="memname">unsigned int GetSize </td> |
| 271 | <td>(</td> |
| 272 | <td class="paramname"></td><td>)</td> |
| 273 | <td> const</td> |
| 274 | </tr> |
| 275 | </table> |
| 276 | </td> |
| 277 | <td class="mlabels-right"> |
| 278 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 279 | </tr> |
| 280 | </table> |
| 281 | </div><div class="memdoc"> |
| 282 | |
| 283 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml#a60eae84cd5c7f05de36f64c1fdc0001c">IReadOnlyPacketBuffer</a>.</p> |
| 284 | |
| 285 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00028">28</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 286 | |
| 287 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 288 | <div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> m_Size;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div></div><!-- fragment --> |
| 289 | </div> |
| 290 | </div> |
| 291 | <a id="a229b663a5b1c2dd9b97ded0513771fc9"></a> |
| 292 | <h2 class="memtitle"><span class="permalink"><a href="#a229b663a5b1c2dd9b97ded0513771fc9">◆ </a></span>GetWritableData()</h2> |
| 293 | |
| 294 | <div class="memitem"> |
| 295 | <div class="memproto"> |
| 296 | <table class="mlabels"> |
| 297 | <tr> |
| 298 | <td class="mlabels-left"> |
| 299 | <table class="memname"> |
| 300 | <tr> |
| 301 | <td class="memname">unsigned char * GetWritableData </td> |
| 302 | <td>(</td> |
| 303 | <td class="paramname"></td><td>)</td> |
| 304 | <td></td> |
| 305 | </tr> |
| 306 | </table> |
| 307 | </td> |
| 308 | <td class="mlabels-right"> |
| 309 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 310 | </tr> |
| 311 | </table> |
| 312 | </div><div class="memdoc"> |
| 313 | |
| 314 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml#a0dd0b11d60c79e8c89ed1b851a45030d">IPacketBuffer</a>.</p> |
| 315 | |
| 316 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00053">53</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 317 | |
| 318 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 319 | <div class="fragment"><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>  <span class="keywordflow">return</span> m_Data.get();</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div></div><!-- fragment --> |
| 320 | </div> |
| 321 | </div> |
| 322 | <a id="aa630bd4c9ada8ab204fbb42651b10613"></a> |
| 323 | <h2 class="memtitle"><span class="permalink"><a href="#aa630bd4c9ada8ab204fbb42651b10613">◆ </a></span>MarkRead()</h2> |
| 324 | |
| 325 | <div class="memitem"> |
| 326 | <div class="memproto"> |
| 327 | <table class="mlabels"> |
| 328 | <tr> |
| 329 | <td class="mlabels-left"> |
| 330 | <table class="memname"> |
| 331 | <tr> |
| 332 | <td class="memname">void MarkRead </td> |
| 333 | <td>(</td> |
| 334 | <td class="paramname"></td><td>)</td> |
| 335 | <td></td> |
| 336 | </tr> |
| 337 | </table> |
| 338 | </td> |
| 339 | <td class="mlabels-right"> |
| 340 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 341 | </tr> |
| 342 | </table> |
| 343 | </div><div class="memdoc"> |
| 344 | |
| 345 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml#adf275dd5054ae4d71e736ba427e1d200">IReadOnlyPacketBuffer</a>.</p> |
| 346 | |
| 347 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00033">33</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 348 | |
| 349 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 350 | <div class="fragment"><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>  m_Size = 0;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div></div><!-- fragment --> |
| 351 | </div> |
| 352 | </div> |
| 353 | <a id="a1a5dddc8911f6189f9ca01394c59faaf"></a> |
| 354 | <h2 class="memtitle"><span class="permalink"><a href="#a1a5dddc8911f6189f9ca01394c59faaf">◆ </a></span>Release()</h2> |
| 355 | |
| 356 | <div class="memitem"> |
| 357 | <div class="memproto"> |
| 358 | <table class="mlabels"> |
| 359 | <tr> |
| 360 | <td class="mlabels-left"> |
| 361 | <table class="memname"> |
| 362 | <tr> |
| 363 | <td class="memname">void Release </td> |
| 364 | <td>(</td> |
| 365 | <td class="paramname"></td><td>)</td> |
| 366 | <td></td> |
| 367 | </tr> |
| 368 | </table> |
| 369 | </td> |
| 370 | <td class="mlabels-right"> |
| 371 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 372 | </tr> |
| 373 | </table> |
| 374 | </div><div class="memdoc"> |
| 375 | |
| 376 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml#a4dc7ecb0d192d6cccc9287daaf0eca0f">IPacketBuffer</a>.</p> |
| 377 | |
| 378 | <p class="definition">Definition at line <a class="el" href="_packet_buffer_8cpp_source.xhtml#l00048">48</a> of file <a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a>.</p> |
| 379 | |
| 380 | <p class="reference">Referenced by <a class="el" href="_packet_buffer_8hpp_source.xhtml#l00023">PacketBuffer::~PacketBuffer()</a>.</p> |
| 381 | <div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  m_Size = 0;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div></div><!-- fragment --> |
| 382 | </div> |
| 383 | </div> |
| 384 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 385 | <li>src/profiling/<a class="el" href="_packet_buffer_8hpp_source.xhtml">PacketBuffer.hpp</a></li> |
| 386 | <li>src/profiling/<a class="el" href="_packet_buffer_8cpp_source.xhtml">PacketBuffer.cpp</a></li> |
| 387 | </ul> |
| 388 | </div><!-- contents --> |
| 389 | </div><!-- doc-content --> |
| 390 | <!-- start footer part --> |
| 391 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 392 | <ul> |
| 393 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.xhtml">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml">PacketBuffer</a></li> |
| 394 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 395 | <a href="http://www.doxygen.org/index.html"> |
| 396 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 397 | </ul> |
| 398 | </div> |
| 399 | </body> |
| 400 | </html> |