classgrpc_1_1_byte_buffer.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC C++: grpc::ByteBuffer Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC C++
  25. &#160;<span id="projectnumber">1.11.0</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.13 -->
  34. <script type="text/javascript">
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. </script>
  37. <script type="text/javascript" src="menudata.js"></script>
  38. <script type="text/javascript" src="menu.js"></script>
  39. <script type="text/javascript">
  40. $(function() {
  41. initMenu('',true,false,'search.php','Search');
  42. $(document).ready(function() { init_search(); });
  43. });
  44. </script>
  45. <div id="main-nav"></div>
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div id="nav-path" class="navpath">
  59. <ul>
  60. <li class="navelem"><a class="el" href="namespacegrpc.html">grpc</a></li><li class="navelem"><a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a></li> </ul>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="summary">
  65. <a href="#nested-classes">Data Structures</a> &#124;
  66. <a href="#pub-methods">Public Member Functions</a> &#124;
  67. <a href="#friends">Friends</a> </div>
  68. <div class="headertitle">
  69. <div class="title">grpc::ByteBuffer Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
  70. </div><!--header-->
  71. <div class="contents">
  72. <p>A sequence of bytes.
  73. <a href="classgrpc_1_1_byte_buffer.html#details">More...</a></p>
  74. <p><code>#include &lt;<a class="el" href="grpcpp_2impl_2codegen_2byte__buffer_8h_source.html">byte_buffer.h</a>&gt;</code></p>
  75. <table class="memberdecls">
  76. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  77. Public Member Functions</h2></td></tr>
  78. <tr class="memitem:aa3037355cbd37dce99c97e5c3700a76b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#aa3037355cbd37dce99c97e5c3700a76b">ByteBuffer</a> ()</td></tr>
  79. <tr class="memdesc:aa3037355cbd37dce99c97e5c3700a76b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constuct an empty buffer. <a href="#aa3037355cbd37dce99c97e5c3700a76b">More...</a><br /></td></tr>
  80. <tr class="separator:aa3037355cbd37dce99c97e5c3700a76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:aa1f69f81c3cb03c61b544a0222e83004"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#aa1f69f81c3cb03c61b544a0222e83004">ByteBuffer</a> (const <a class="el" href="classgrpc_1_1_slice.html">Slice</a> *slices, size_t nslices)</td></tr>
  82. <tr class="memdesc:aa1f69f81c3cb03c61b544a0222e83004"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct buffer from <em>slices</em>, of which there are <em>nslices</em>. <a href="#aa1f69f81c3cb03c61b544a0222e83004">More...</a><br /></td></tr>
  83. <tr class="separator:aa1f69f81c3cb03c61b544a0222e83004"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:a67fdf624e23dbd80d84e3e85e1d5b176"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a67fdf624e23dbd80d84e3e85e1d5b176">ByteBuffer</a> (const <a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> &amp;buf)</td></tr>
  85. <tr class="memdesc:a67fdf624e23dbd80d84e3e85e1d5b176"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constuct a byte buffer by referencing elements of existing buffer <em>buf</em>. <a href="#a67fdf624e23dbd80d84e3e85e1d5b176">More...</a><br /></td></tr>
  86. <tr class="separator:a67fdf624e23dbd80d84e3e85e1d5b176"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:aeb5dd0045ed262de06481465326bd64a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#aeb5dd0045ed262de06481465326bd64a">~ByteBuffer</a> ()</td></tr>
  88. <tr class="separator:aeb5dd0045ed262de06481465326bd64a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ac17487e1e411f469d653e3c44c873e6d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#ac17487e1e411f469d653e3c44c873e6d">operator=</a> (const <a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> &amp;)</td></tr>
  90. <tr class="separator:ac17487e1e411f469d653e3c44c873e6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:abe7615cdbd14996a7e82fc84e373a365"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgrpc_1_1_status.html">Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#abe7615cdbd14996a7e82fc84e373a365">Dump</a> (std::vector&lt; <a class="el" href="classgrpc_1_1_slice.html">Slice</a> &gt; *slices) const</td></tr>
  92. <tr class="memdesc:abe7615cdbd14996a7e82fc84e373a365"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dump (read) the buffer contents into <em>slices</em>. <a href="#abe7615cdbd14996a7e82fc84e373a365">More...</a><br /></td></tr>
  93. <tr class="separator:abe7615cdbd14996a7e82fc84e373a365"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a185b593e5c7d2b888fa377989a6bae80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a185b593e5c7d2b888fa377989a6bae80">Clear</a> ()</td></tr>
  95. <tr class="memdesc:a185b593e5c7d2b888fa377989a6bae80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all data. <a href="#a185b593e5c7d2b888fa377989a6bae80">More...</a><br /></td></tr>
  96. <tr class="separator:a185b593e5c7d2b888fa377989a6bae80"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a42889c8018ea3868db2f54d92d1609ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a42889c8018ea3868db2f54d92d1609ab">Duplicate</a> ()</td></tr>
  98. <tr class="memdesc:a42889c8018ea3868db2f54d92d1609ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make a duplicate copy of the internals of this byte buffer so that we have our own owned version of it. <a href="#a42889c8018ea3868db2f54d92d1609ab">More...</a><br /></td></tr>
  99. <tr class="separator:a42889c8018ea3868db2f54d92d1609ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:ae03627c8b3297965fa0cdd4f03a9af0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#ae03627c8b3297965fa0cdd4f03a9af0f">Release</a> ()</td></tr>
  101. <tr class="memdesc:ae03627c8b3297965fa0cdd4f03a9af0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forget underlying byte buffer without destroying Use this only for un-owned byte buffers. <a href="#ae03627c8b3297965fa0cdd4f03a9af0f">More...</a><br /></td></tr>
  102. <tr class="separator:ae03627c8b3297965fa0cdd4f03a9af0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a38122ed734455178d16e46f21e6ac9e6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a38122ed734455178d16e46f21e6ac9e6">Length</a> () const</td></tr>
  104. <tr class="memdesc:a38122ed734455178d16e46f21e6ac9e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Buffer size in bytes. <a href="#a38122ed734455178d16e46f21e6ac9e6">More...</a><br /></td></tr>
  105. <tr class="separator:a38122ed734455178d16e46f21e6ac9e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a45b09ecb5a8529b286aba6264daade65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a45b09ecb5a8529b286aba6264daade65">Swap</a> (<a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> *other)</td></tr>
  107. <tr class="memdesc:a45b09ecb5a8529b286aba6264daade65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swap the state of *this and *other. <a href="#a45b09ecb5a8529b286aba6264daade65">More...</a><br /></td></tr>
  108. <tr class="separator:a45b09ecb5a8529b286aba6264daade65"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:aea6bcd0d3c70fc14158df68c59dc82d4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#aea6bcd0d3c70fc14158df68c59dc82d4">Valid</a> () const</td></tr>
  110. <tr class="memdesc:aea6bcd0d3c70fc14158df68c59dc82d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is this <a class="el" href="classgrpc_1_1_byte_buffer.html" title="A sequence of bytes. ">ByteBuffer</a> valid? <a href="#aea6bcd0d3c70fc14158df68c59dc82d4">More...</a><br /></td></tr>
  111. <tr class="separator:aea6bcd0d3c70fc14158df68c59dc82d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. </table><table class="memberdecls">
  113. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  114. Friends</h2></td></tr>
  115. <tr class="memitem:ab90fe50537dd6fe009b7b913652420f0"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#ab90fe50537dd6fe009b7b913652420f0">SerializationTraits&lt; ByteBuffer, void &gt;</a></td></tr>
  116. <tr class="separator:ab90fe50537dd6fe009b7b913652420f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ad0907065db479dc47b2fa752d7782b6f"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#ad0907065db479dc47b2fa752d7782b6f">ServerInterface</a></td></tr>
  118. <tr class="separator:ad0907065db479dc47b2fa752d7782b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ad7fe1828bc120efad35f57929870dc5b"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#ad7fe1828bc120efad35f57929870dc5b">internal::CallOpSendMessage</a></td></tr>
  120. <tr class="separator:ad7fe1828bc120efad35f57929870dc5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a445caf03eec410ca4fab24e534181801"><td class="memTemplParams" colspan="2">template&lt;class R &gt; </td></tr>
  122. <tr class="memitem:a445caf03eec410ca4fab24e534181801"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a445caf03eec410ca4fab24e534181801">internal::CallOpRecvMessage</a></td></tr>
  123. <tr class="separator:a445caf03eec410ca4fab24e534181801"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a291e55ec452333b2212c5d5a3fac160f"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a291e55ec452333b2212c5d5a3fac160f">internal::CallOpGenericRecvMessage</a></td></tr>
  125. <tr class="separator:a291e55ec452333b2212c5d5a3fac160f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a499997f007ce7afcc7ca7adb69a0bebf"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a499997f007ce7afcc7ca7adb69a0bebf">internal::MethodHandler</a></td></tr>
  127. <tr class="separator:a499997f007ce7afcc7ca7adb69a0bebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a471b336e252edb7105b57058c8de7fff"><td class="memTemplParams" colspan="2">template&lt;class ServiceType , class RequestType , class ResponseType &gt; </td></tr>
  129. <tr class="memitem:a471b336e252edb7105b57058c8de7fff"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a471b336e252edb7105b57058c8de7fff">internal::RpcMethodHandler</a></td></tr>
  130. <tr class="separator:a471b336e252edb7105b57058c8de7fff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a92a457fe95d4f1662f65ed9b47be0f84"><td class="memTemplParams" colspan="2">template&lt;class ServiceType , class RequestType , class ResponseType &gt; </td></tr>
  132. <tr class="memitem:a92a457fe95d4f1662f65ed9b47be0f84"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a92a457fe95d4f1662f65ed9b47be0f84">internal::ServerStreamingHandler</a></td></tr>
  133. <tr class="separator:a92a457fe95d4f1662f65ed9b47be0f84"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a8575cd74967bac70dad4afbf830db64c"><td class="memTemplParams" colspan="2">template&lt;class R &gt; </td></tr>
  135. <tr class="memitem:a8575cd74967bac70dad4afbf830db64c"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_byte_buffer.html#a8575cd74967bac70dad4afbf830db64c">internal::DeserializeFuncType</a></td></tr>
  136. <tr class="separator:a8575cd74967bac70dad4afbf830db64c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. </table>
  138. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  139. <div class="textblock"><p>A sequence of bytes. </p>
  140. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  141. <a id="aa3037355cbd37dce99c97e5c3700a76b"></a>
  142. <h2 class="memtitle"><span class="permalink"><a href="#aa3037355cbd37dce99c97e5c3700a76b">&#9670;&nbsp;</a></span>ByteBuffer() <span class="overload">[1/3]</span></h2>
  143. <div class="memitem">
  144. <div class="memproto">
  145. <table class="mlabels">
  146. <tr>
  147. <td class="mlabels-left">
  148. <table class="memname">
  149. <tr>
  150. <td class="memname">grpc::ByteBuffer::ByteBuffer </td>
  151. <td>(</td>
  152. <td class="paramname"></td><td>)</td>
  153. <td></td>
  154. </tr>
  155. </table>
  156. </td>
  157. <td class="mlabels-right">
  158. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  159. </tr>
  160. </table>
  161. </div><div class="memdoc">
  162. <p>Constuct an empty buffer. </p>
  163. </div>
  164. </div>
  165. <a id="aa1f69f81c3cb03c61b544a0222e83004"></a>
  166. <h2 class="memtitle"><span class="permalink"><a href="#aa1f69f81c3cb03c61b544a0222e83004">&#9670;&nbsp;</a></span>ByteBuffer() <span class="overload">[2/3]</span></h2>
  167. <div class="memitem">
  168. <div class="memproto">
  169. <table class="memname">
  170. <tr>
  171. <td class="memname">grpc::ByteBuffer::ByteBuffer </td>
  172. <td>(</td>
  173. <td class="paramtype">const <a class="el" href="classgrpc_1_1_slice.html">Slice</a> *&#160;</td>
  174. <td class="paramname"><em>slices</em>, </td>
  175. </tr>
  176. <tr>
  177. <td class="paramkey"></td>
  178. <td></td>
  179. <td class="paramtype">size_t&#160;</td>
  180. <td class="paramname"><em>nslices</em>&#160;</td>
  181. </tr>
  182. <tr>
  183. <td></td>
  184. <td>)</td>
  185. <td></td><td></td>
  186. </tr>
  187. </table>
  188. </div><div class="memdoc">
  189. <p>Construct buffer from <em>slices</em>, of which there are <em>nslices</em>. </p>
  190. </div>
  191. </div>
  192. <a id="a67fdf624e23dbd80d84e3e85e1d5b176"></a>
  193. <h2 class="memtitle"><span class="permalink"><a href="#a67fdf624e23dbd80d84e3e85e1d5b176">&#9670;&nbsp;</a></span>ByteBuffer() <span class="overload">[3/3]</span></h2>
  194. <div class="memitem">
  195. <div class="memproto">
  196. <table class="memname">
  197. <tr>
  198. <td class="memname">grpc::ByteBuffer::ByteBuffer </td>
  199. <td>(</td>
  200. <td class="paramtype">const <a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
  201. <td class="paramname"><em>buf</em></td><td>)</td>
  202. <td></td>
  203. </tr>
  204. </table>
  205. </div><div class="memdoc">
  206. <p>Constuct a byte buffer by referencing elements of existing buffer <em>buf</em>. </p>
  207. <p>Wrapper of core function grpc_byte_buffer_copy </p>
  208. </div>
  209. </div>
  210. <a id="aeb5dd0045ed262de06481465326bd64a"></a>
  211. <h2 class="memtitle"><span class="permalink"><a href="#aeb5dd0045ed262de06481465326bd64a">&#9670;&nbsp;</a></span>~ByteBuffer()</h2>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="mlabels">
  215. <tr>
  216. <td class="mlabels-left">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">grpc::ByteBuffer::~ByteBuffer </td>
  220. <td>(</td>
  221. <td class="paramname"></td><td>)</td>
  222. <td></td>
  223. </tr>
  224. </table>
  225. </td>
  226. <td class="mlabels-right">
  227. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  228. </tr>
  229. </table>
  230. </div><div class="memdoc">
  231. </div>
  232. </div>
  233. <h2 class="groupheader">Member Function Documentation</h2>
  234. <a id="a185b593e5c7d2b888fa377989a6bae80"></a>
  235. <h2 class="memtitle"><span class="permalink"><a href="#a185b593e5c7d2b888fa377989a6bae80">&#9670;&nbsp;</a></span>Clear()</h2>
  236. <div class="memitem">
  237. <div class="memproto">
  238. <table class="mlabels">
  239. <tr>
  240. <td class="mlabels-left">
  241. <table class="memname">
  242. <tr>
  243. <td class="memname">void grpc::ByteBuffer::Clear </td>
  244. <td>(</td>
  245. <td class="paramname"></td><td>)</td>
  246. <td></td>
  247. </tr>
  248. </table>
  249. </td>
  250. <td class="mlabels-right">
  251. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  252. </tr>
  253. </table>
  254. </div><div class="memdoc">
  255. <p>Remove all data. </p>
  256. </div>
  257. </div>
  258. <a id="abe7615cdbd14996a7e82fc84e373a365"></a>
  259. <h2 class="memtitle"><span class="permalink"><a href="#abe7615cdbd14996a7e82fc84e373a365">&#9670;&nbsp;</a></span>Dump()</h2>
  260. <div class="memitem">
  261. <div class="memproto">
  262. <table class="memname">
  263. <tr>
  264. <td class="memname"><a class="el" href="classgrpc_1_1_status.html">Status</a> grpc::ByteBuffer::Dump </td>
  265. <td>(</td>
  266. <td class="paramtype">std::vector&lt; <a class="el" href="classgrpc_1_1_slice.html">Slice</a> &gt; *&#160;</td>
  267. <td class="paramname"><em>slices</em></td><td>)</td>
  268. <td> const</td>
  269. </tr>
  270. </table>
  271. </div><div class="memdoc">
  272. <p>Dump (read) the buffer contents into <em>slices</em>. </p>
  273. </div>
  274. </div>
  275. <a id="a42889c8018ea3868db2f54d92d1609ab"></a>
  276. <h2 class="memtitle"><span class="permalink"><a href="#a42889c8018ea3868db2f54d92d1609ab">&#9670;&nbsp;</a></span>Duplicate()</h2>
  277. <div class="memitem">
  278. <div class="memproto">
  279. <table class="mlabels">
  280. <tr>
  281. <td class="mlabels-left">
  282. <table class="memname">
  283. <tr>
  284. <td class="memname">void grpc::ByteBuffer::Duplicate </td>
  285. <td>(</td>
  286. <td class="paramname"></td><td>)</td>
  287. <td></td>
  288. </tr>
  289. </table>
  290. </td>
  291. <td class="mlabels-right">
  292. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  293. </tr>
  294. </table>
  295. </div><div class="memdoc">
  296. <p>Make a duplicate copy of the internals of this byte buffer so that we have our own owned version of it. </p>
  297. <p>bbuf.Duplicate(); is equivalent to bbuf=bbuf; but is actually readable </p>
  298. </div>
  299. </div>
  300. <a id="a38122ed734455178d16e46f21e6ac9e6"></a>
  301. <h2 class="memtitle"><span class="permalink"><a href="#a38122ed734455178d16e46f21e6ac9e6">&#9670;&nbsp;</a></span>Length()</h2>
  302. <div class="memitem">
  303. <div class="memproto">
  304. <table class="memname">
  305. <tr>
  306. <td class="memname">size_t grpc::ByteBuffer::Length </td>
  307. <td>(</td>
  308. <td class="paramname"></td><td>)</td>
  309. <td> const</td>
  310. </tr>
  311. </table>
  312. </div><div class="memdoc">
  313. <p>Buffer size in bytes. </p>
  314. </div>
  315. </div>
  316. <a id="ac17487e1e411f469d653e3c44c873e6d"></a>
  317. <h2 class="memtitle"><span class="permalink"><a href="#ac17487e1e411f469d653e3c44c873e6d">&#9670;&nbsp;</a></span>operator=()</h2>
  318. <div class="memitem">
  319. <div class="memproto">
  320. <table class="memname">
  321. <tr>
  322. <td class="memname"><a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a>&amp; grpc::ByteBuffer::operator= </td>
  323. <td>(</td>
  324. <td class="paramtype">const <a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> &amp;&#160;</td>
  325. <td class="paramname"></td><td>)</td>
  326. <td></td>
  327. </tr>
  328. </table>
  329. </div><div class="memdoc">
  330. </div>
  331. </div>
  332. <a id="ae03627c8b3297965fa0cdd4f03a9af0f"></a>
  333. <h2 class="memtitle"><span class="permalink"><a href="#ae03627c8b3297965fa0cdd4f03a9af0f">&#9670;&nbsp;</a></span>Release()</h2>
  334. <div class="memitem">
  335. <div class="memproto">
  336. <table class="mlabels">
  337. <tr>
  338. <td class="mlabels-left">
  339. <table class="memname">
  340. <tr>
  341. <td class="memname">void grpc::ByteBuffer::Release </td>
  342. <td>(</td>
  343. <td class="paramname"></td><td>)</td>
  344. <td></td>
  345. </tr>
  346. </table>
  347. </td>
  348. <td class="mlabels-right">
  349. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  350. </tr>
  351. </table>
  352. </div><div class="memdoc">
  353. <p>Forget underlying byte buffer without destroying Use this only for un-owned byte buffers. </p>
  354. </div>
  355. </div>
  356. <a id="a45b09ecb5a8529b286aba6264daade65"></a>
  357. <h2 class="memtitle"><span class="permalink"><a href="#a45b09ecb5a8529b286aba6264daade65">&#9670;&nbsp;</a></span>Swap()</h2>
  358. <div class="memitem">
  359. <div class="memproto">
  360. <table class="memname">
  361. <tr>
  362. <td class="memname">void grpc::ByteBuffer::Swap </td>
  363. <td>(</td>
  364. <td class="paramtype"><a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> *&#160;</td>
  365. <td class="paramname"><em>other</em></td><td>)</td>
  366. <td></td>
  367. </tr>
  368. </table>
  369. </div><div class="memdoc">
  370. <p>Swap the state of *this and *other. </p>
  371. </div>
  372. </div>
  373. <a id="aea6bcd0d3c70fc14158df68c59dc82d4"></a>
  374. <h2 class="memtitle"><span class="permalink"><a href="#aea6bcd0d3c70fc14158df68c59dc82d4">&#9670;&nbsp;</a></span>Valid()</h2>
  375. <div class="memitem">
  376. <div class="memproto">
  377. <table class="mlabels">
  378. <tr>
  379. <td class="mlabels-left">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">bool grpc::ByteBuffer::Valid </td>
  383. <td>(</td>
  384. <td class="paramname"></td><td>)</td>
  385. <td> const</td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td class="mlabels-right">
  390. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  391. </tr>
  392. </table>
  393. </div><div class="memdoc">
  394. <p>Is this <a class="el" href="classgrpc_1_1_byte_buffer.html" title="A sequence of bytes. ">ByteBuffer</a> valid? </p>
  395. </div>
  396. </div>
  397. <h2 class="groupheader">Friends And Related Function Documentation</h2>
  398. <a id="a291e55ec452333b2212c5d5a3fac160f"></a>
  399. <h2 class="memtitle"><span class="permalink"><a href="#a291e55ec452333b2212c5d5a3fac160f">&#9670;&nbsp;</a></span>internal::CallOpGenericRecvMessage</h2>
  400. <div class="memitem">
  401. <div class="memproto">
  402. <table class="mlabels">
  403. <tr>
  404. <td class="mlabels-left">
  405. <table class="memname">
  406. <tr>
  407. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_call_op_generic_recv_message.html">internal::CallOpGenericRecvMessage</a></td>
  408. </tr>
  409. </table>
  410. </td>
  411. <td class="mlabels-right">
  412. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  413. </tr>
  414. </table>
  415. </div><div class="memdoc">
  416. </div>
  417. </div>
  418. <a id="a445caf03eec410ca4fab24e534181801"></a>
  419. <h2 class="memtitle"><span class="permalink"><a href="#a445caf03eec410ca4fab24e534181801">&#9670;&nbsp;</a></span>internal::CallOpRecvMessage</h2>
  420. <div class="memitem">
  421. <div class="memproto">
  422. <div class="memtemplate">
  423. template&lt;class R &gt; </div>
  424. <table class="mlabels">
  425. <tr>
  426. <td class="mlabels-left">
  427. <table class="memname">
  428. <tr>
  429. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_call_op_recv_message.html">internal::CallOpRecvMessage</a></td>
  430. </tr>
  431. </table>
  432. </td>
  433. <td class="mlabels-right">
  434. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  435. </tr>
  436. </table>
  437. </div><div class="memdoc">
  438. </div>
  439. </div>
  440. <a id="ad7fe1828bc120efad35f57929870dc5b"></a>
  441. <h2 class="memtitle"><span class="permalink"><a href="#ad7fe1828bc120efad35f57929870dc5b">&#9670;&nbsp;</a></span>internal::CallOpSendMessage</h2>
  442. <div class="memitem">
  443. <div class="memproto">
  444. <table class="mlabels">
  445. <tr>
  446. <td class="mlabels-left">
  447. <table class="memname">
  448. <tr>
  449. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_call_op_send_message.html">internal::CallOpSendMessage</a></td>
  450. </tr>
  451. </table>
  452. </td>
  453. <td class="mlabels-right">
  454. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  455. </tr>
  456. </table>
  457. </div><div class="memdoc">
  458. </div>
  459. </div>
  460. <a id="a8575cd74967bac70dad4afbf830db64c"></a>
  461. <h2 class="memtitle"><span class="permalink"><a href="#a8575cd74967bac70dad4afbf830db64c">&#9670;&nbsp;</a></span>internal::DeserializeFuncType</h2>
  462. <div class="memitem">
  463. <div class="memproto">
  464. <div class="memtemplate">
  465. template&lt;class R &gt; </div>
  466. <table class="mlabels">
  467. <tr>
  468. <td class="mlabels-left">
  469. <table class="memname">
  470. <tr>
  471. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_deserialize_func_type.html">internal::DeserializeFuncType</a></td>
  472. </tr>
  473. </table>
  474. </td>
  475. <td class="mlabels-right">
  476. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  477. </tr>
  478. </table>
  479. </div><div class="memdoc">
  480. </div>
  481. </div>
  482. <a id="a499997f007ce7afcc7ca7adb69a0bebf"></a>
  483. <h2 class="memtitle"><span class="permalink"><a href="#a499997f007ce7afcc7ca7adb69a0bebf">&#9670;&nbsp;</a></span>internal::MethodHandler</h2>
  484. <div class="memitem">
  485. <div class="memproto">
  486. <table class="mlabels">
  487. <tr>
  488. <td class="mlabels-left">
  489. <table class="memname">
  490. <tr>
  491. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_method_handler.html">internal::MethodHandler</a></td>
  492. </tr>
  493. </table>
  494. </td>
  495. <td class="mlabels-right">
  496. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  497. </tr>
  498. </table>
  499. </div><div class="memdoc">
  500. </div>
  501. </div>
  502. <a id="a471b336e252edb7105b57058c8de7fff"></a>
  503. <h2 class="memtitle"><span class="permalink"><a href="#a471b336e252edb7105b57058c8de7fff">&#9670;&nbsp;</a></span>internal::RpcMethodHandler</h2>
  504. <div class="memitem">
  505. <div class="memproto">
  506. <div class="memtemplate">
  507. template&lt;class ServiceType , class RequestType , class ResponseType &gt; </div>
  508. <table class="mlabels">
  509. <tr>
  510. <td class="mlabels-left">
  511. <table class="memname">
  512. <tr>
  513. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_rpc_method_handler.html">internal::RpcMethodHandler</a></td>
  514. </tr>
  515. </table>
  516. </td>
  517. <td class="mlabels-right">
  518. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  519. </tr>
  520. </table>
  521. </div><div class="memdoc">
  522. </div>
  523. </div>
  524. <a id="a92a457fe95d4f1662f65ed9b47be0f84"></a>
  525. <h2 class="memtitle"><span class="permalink"><a href="#a92a457fe95d4f1662f65ed9b47be0f84">&#9670;&nbsp;</a></span>internal::ServerStreamingHandler</h2>
  526. <div class="memitem">
  527. <div class="memproto">
  528. <div class="memtemplate">
  529. template&lt;class ServiceType , class RequestType , class ResponseType &gt; </div>
  530. <table class="mlabels">
  531. <tr>
  532. <td class="mlabels-left">
  533. <table class="memname">
  534. <tr>
  535. <td class="memname">friend class <a class="el" href="classgrpc_1_1internal_1_1_server_streaming_handler.html">internal::ServerStreamingHandler</a></td>
  536. </tr>
  537. </table>
  538. </td>
  539. <td class="mlabels-right">
  540. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  541. </tr>
  542. </table>
  543. </div><div class="memdoc">
  544. </div>
  545. </div>
  546. <a id="ab90fe50537dd6fe009b7b913652420f0"></a>
  547. <h2 class="memtitle"><span class="permalink"><a href="#ab90fe50537dd6fe009b7b913652420f0">&#9670;&nbsp;</a></span>SerializationTraits< ByteBuffer, void ></h2>
  548. <div class="memitem">
  549. <div class="memproto">
  550. <table class="mlabels">
  551. <tr>
  552. <td class="mlabels-left">
  553. <table class="memname">
  554. <tr>
  555. <td class="memname">friend class <a class="el" href="classgrpc_1_1_serialization_traits.html">SerializationTraits</a>&lt; <a class="el" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a>, void &gt;</td>
  556. </tr>
  557. </table>
  558. </td>
  559. <td class="mlabels-right">
  560. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  561. </tr>
  562. </table>
  563. </div><div class="memdoc">
  564. </div>
  565. </div>
  566. <a id="ad0907065db479dc47b2fa752d7782b6f"></a>
  567. <h2 class="memtitle"><span class="permalink"><a href="#ad0907065db479dc47b2fa752d7782b6f">&#9670;&nbsp;</a></span>ServerInterface</h2>
  568. <div class="memitem">
  569. <div class="memproto">
  570. <table class="mlabels">
  571. <tr>
  572. <td class="mlabels-left">
  573. <table class="memname">
  574. <tr>
  575. <td class="memname">friend class <a class="el" href="classgrpc_1_1_server_interface.html">ServerInterface</a></td>
  576. </tr>
  577. </table>
  578. </td>
  579. <td class="mlabels-right">
  580. <span class="mlabels"><span class="mlabel">friend</span></span> </td>
  581. </tr>
  582. </table>
  583. </div><div class="memdoc">
  584. </div>
  585. </div>
  586. <hr/>The documentation for this class was generated from the following file:<ul>
  587. <li>include/grpcpp/impl/codegen/<a class="el" href="grpcpp_2impl_2codegen_2byte__buffer_8h_source.html">byte_buffer.h</a></li>
  588. </ul>
  589. </div><!-- contents -->
  590. <!-- start footer part -->
  591. <hr class="footer"/><address class="footer"><small>
  592. Generated on Fri Apr 13 2018 15:03:53 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  593. <img class="footer" src="doxygen.png" alt="doxygen"/>
  594. </a> 1.8.13
  595. </small></address>
  596. </body>
  597. </html>