impl_2codegen_2slice_8h_source.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC Core: include/grpc/impl/codegen/slice.h Source File</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 Core
  25. &#160;<span id="projectnumber">15.0.0</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. <div id="nav-path" class="navpath">
  62. <ul>
  63. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9d7a14d6d9adcbe4c35dbdb88d867e2e.html">grpc</a></li><li class="navelem"><a class="el" href="dir_4b3e2ed696753daba329e2683e0f6479.html">impl</a></li><li class="navelem"><a class="el" href="dir_7a167954ab48275cc692d783196d1f28.html">codegen</a></li> </ul>
  64. </div>
  65. </div><!-- top -->
  66. <div class="header">
  67. <div class="headertitle">
  68. <div class="title">slice.h</div> </div>
  69. </div><!--header-->
  70. <div class="contents">
  71. <a href="impl_2codegen_2slice_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
  72. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
  73. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015 gRPC authors.</span></div>
  74. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div>
  75. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
  76. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
  77. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
  78. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
  79. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
  80. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
  81. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
  82. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
  83. <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
  84. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
  85. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div>
  86. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div>
  87. <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div>
  88. <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; </div>
  89. <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GRPC_IMPL_CODEGEN_SLICE_H</span></div>
  90. <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GRPC_IMPL_CODEGEN_SLICE_H</span></div>
  91. <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
  92. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_2codegen_2port__platform_8h.html">grpc/impl/codegen/port_platform.h</a>&gt;</span></div>
  93. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
  94. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
  95. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
  96. <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gpr__slice_8h.html">grpc/impl/codegen/gpr_slice.h</a>&gt;</span></div>
  97. <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
  98. <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a2a5f8eaa5d8784bfec46ac983644dca2"> 28</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structgrpc__slice.html">grpc_slice</a> <a class="code" href="structgrpc__slice.html">grpc_slice</a>;</div>
  99. <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
  100. <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">/* Inlined half of grpc_slice is allowed to expand the size of the overall type</span></div>
  101. <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment"> by this many bytes */</span></div>
  102. <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a6a30245ea694a3915b1413a2f50c9b54"> 45</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_INLINE_EXTRA_SIZE sizeof(void*)</span></div>
  103. <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
  104. <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#ae65fc74cb3afbcd3299a1c93f90bae20"> 47</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_INLINED_SIZE \</span></div>
  105. <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor"> (sizeof(size_t) + sizeof(uint8_t*) - 1 + GRPC_SLICE_INLINE_EXTRA_SIZE)</span></div>
  106. <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
  107. <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">struct </span>grpc_slice_refcount;</div>
  108. <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structgrpc__slice.html"> 60</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc__slice.html">grpc_slice</a> {</div>
  109. <div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structgrpc__slice.html#a467ef319d024f1897c7ff3bdadb78493"> 61</a></span>&#160; <span class="keyword">struct </span>grpc_slice_refcount* <a class="code" href="structgrpc__slice.html#a467ef319d024f1897c7ff3bdadb78493">refcount</a>;</div>
  110. <div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="uniongrpc__slice_1_1grpc__slice__data.html"> 62</a></span>&#160; <span class="keyword">union </span><a class="code" href="uniongrpc__slice_1_1grpc__slice__data.html">grpc_slice_data</a> {</div>
  111. <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html"> 63</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html">grpc_slice_refcounted</a> {</div>
  112. <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abb0e321a6dfc5609ce4a7eb940484ee0"> 64</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abb0e321a6dfc5609ce4a7eb940484ee0">length</a>;</div>
  113. <div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abeb23ef5c6395ccd04908b9d7227a566"> 65</a></span>&#160; uint8_t* <a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abeb23ef5c6395ccd04908b9d7227a566">bytes</a>;</div>
  114. <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; } <a class="code" href="uniongrpc__slice_1_1grpc__slice__data.html#a6b1bb3c74a54421cc98b2b0b3bfd1069">refcounted</a>;</div>
  115. <div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html"> 67</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html">grpc_slice_inlined</a> {</div>
  116. <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#a252a85cb15f1793625ef88b1fa4f9f89"> 68</a></span>&#160; uint8_t <a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#a252a85cb15f1793625ef88b1fa4f9f89">length</a>;</div>
  117. <div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#ae4d2db52d28392a565aae5d5ba698c28"> 69</a></span>&#160; uint8_t <a class="code" href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#ae4d2db52d28392a565aae5d5ba698c28">bytes</a>[<a class="code" href="impl_2codegen_2slice_8h.html#ae65fc74cb3afbcd3299a1c93f90bae20">GRPC_SLICE_INLINED_SIZE</a>];</div>
  118. <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; } <a class="code" href="uniongrpc__slice_1_1grpc__slice__data.html#ad3ffc4dc1a9dbde58f03a45e558e72a6">inlined</a>;</div>
  119. <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; } <a class="code" href="structgrpc__slice.html#a935f767d484585d016725be83e34917c">data</a>;</div>
  120. <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;};</div>
  121. <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
  122. <div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a81db47a2be0a079aa797cd77f3864809"> 74</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_BUFFER_INLINE_ELEMENTS 8</span></div>
  123. <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
  124. <div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html"> 78</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structgrpc__slice__buffer.html">grpc_slice_buffer</a> {</div>
  125. <div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#a52a8e83b31006d685d98ce4db16520d8"> 81</a></span>&#160; <a class="code" href="structgrpc__slice.html">grpc_slice</a>* <a class="code" href="structgrpc__slice__buffer.html#a52a8e83b31006d685d98ce4db16520d8">base_slices</a>;</div>
  126. <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
  127. <div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#ac37e9d19ec31eab8f429d2b4af908256"> 84</a></span>&#160; <a class="code" href="structgrpc__slice.html">grpc_slice</a>* <a class="code" href="structgrpc__slice__buffer.html#ac37e9d19ec31eab8f429d2b4af908256">slices</a>;</div>
  128. <div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#ac6b9b99f100ac02280fe6ba0edc754cc"> 86</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__slice__buffer.html#ac6b9b99f100ac02280fe6ba0edc754cc">count</a>;</div>
  129. <div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#a8f35fa07c9a4d9f9a4e088a1155e5833"> 89</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__slice__buffer.html#a8f35fa07c9a4d9f9a4e088a1155e5833">capacity</a>;</div>
  130. <div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#ad796dcdd16fbb680a7a5368228d20127"> 91</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__slice__buffer.html#ad796dcdd16fbb680a7a5368228d20127">length</a>;</div>
  131. <div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structgrpc__slice__buffer.html#a27c76a4e972a41ab5ac6504c4426fab9"> 93</a></span>&#160; <a class="code" href="structgrpc__slice.html">grpc_slice</a> <a class="code" href="structgrpc__slice__buffer.html#a27c76a4e972a41ab5ac6504c4426fab9">inlined</a>[<a class="code" href="impl_2codegen_2slice_8h.html#a81db47a2be0a079aa797cd77f3864809">GRPC_SLICE_BUFFER_INLINE_ELEMENTS</a>];</div>
  132. <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;} <a class="code" href="impl_2codegen_2slice_8h.html#a7aef9f4bf29684d4c69b6fdd3d9399be">grpc_slice_buffer</a>;</div>
  133. <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
  134. <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a8a15783c251cdeb18c3f8b0ad41d0352"> 96</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_START_PTR(slice) \</span></div>
  135. <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.bytes \</span></div>
  136. <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="preprocessor"> : (slice).data.inlined.bytes)</span></div>
  137. <div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#ae965fb2ee1a646253cdbd49d82b0b6c5"> 99</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_LENGTH(slice) \</span></div>
  138. <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.length \</span></div>
  139. <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor"> : (slice).data.inlined.length)</span></div>
  140. <div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a6791fa7be0a1a9144e005cfea7baea84"> 102</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_SET_LENGTH(slice, newlen) \</span></div>
  141. <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="preprocessor"> ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \</span></div>
  142. <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="preprocessor"> : ((slice).data.inlined.length = (uint8_t)(newlen)))</span></div>
  143. <div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a96535019e10a540192c1f276ec049a56"> 105</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_END_PTR(slice) \</span></div>
  144. <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="preprocessor"> GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(slice)</span></div>
  145. <div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="impl_2codegen_2slice_8h.html#a829178b3baec8b96a992a5607ad3ed93"> 107</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_IS_EMPTY(slice) (GRPC_SLICE_LENGTH(slice) == 0)</span></div>
  146. <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
  147. <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="preprocessor">#ifdef GRPC_ALLOW_GPR_SLICE_FUNCTIONS</span></div>
  148. <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
  149. <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="comment">/* Duplicate GPR_* definitions */</span></div>
  150. <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="preprocessor">#define GPR_SLICE_START_PTR(slice) \</span></div>
  151. <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.bytes \</span></div>
  152. <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor"> : (slice).data.inlined.bytes)</span></div>
  153. <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="preprocessor">#define GPR_SLICE_LENGTH(slice) \</span></div>
  154. <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.length \</span></div>
  155. <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="preprocessor"> : (slice).data.inlined.length)</span></div>
  156. <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="preprocessor">#define GPR_SLICE_SET_LENGTH(slice, newlen) \</span></div>
  157. <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="preprocessor"> ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \</span></div>
  158. <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="preprocessor"> : ((slice).data.inlined.length = (uint8_t)(newlen)))</span></div>
  159. <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="preprocessor">#define GPR_SLICE_END_PTR(slice) \</span></div>
  160. <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor"> GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(slice)</span></div>
  161. <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="preprocessor">#define GPR_SLICE_IS_EMPTY(slice) (GRPC_SLICE_LENGTH(slice) == 0)</span></div>
  162. <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
  163. <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRPC_ALLOW_GPR_SLICE_FUNCTIONS */</span><span class="preprocessor"></span></div>
  164. <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; </div>
  165. <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* GRPC_IMPL_CODEGEN_SLICE_H */</span><span class="preprocessor"></span></div>
  166. </div><!-- fragment --></div><!-- contents -->
  167. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined_html_ae4d2db52d28392a565aae5d5ba698c28"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#ae4d2db52d28392a565aae5d5ba698c28">grpc_slice::grpc_slice_data::grpc_slice_inlined::bytes</a></div><div class="ttdeci">uint8_t bytes[(sizeof(size_t)+sizeof(uint8_t *) - 1+sizeof(void *))]</div><div class="ttdef"><b>Definition:</b> slice.h:69</div></div>
  168. <div class="ttc" id="astructgrpc__slice__buffer_html_a27c76a4e972a41ab5ac6504c4426fab9"><div class="ttname"><a href="structgrpc__slice__buffer.html#a27c76a4e972a41ab5ac6504c4426fab9">grpc_slice_buffer::inlined</a></div><div class="ttdeci">grpc_slice inlined[8]</div><div class="ttdoc">inlined elements to avoid allocations</div><div class="ttdef"><b>Definition:</b> slice.h:93</div></div>
  169. <div class="ttc" id="astructgrpc__slice_html_a467ef319d024f1897c7ff3bdadb78493"><div class="ttname"><a href="structgrpc__slice.html#a467ef319d024f1897c7ff3bdadb78493">grpc_slice::refcount</a></div><div class="ttdeci">struct grpc_slice_refcount * refcount</div><div class="ttdef"><b>Definition:</b> slice.h:61</div></div>
  170. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted_html_abb0e321a6dfc5609ce4a7eb940484ee0"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abb0e321a6dfc5609ce4a7eb940484ee0">grpc_slice::grpc_slice_data::grpc_slice_refcounted::length</a></div><div class="ttdeci">size_t length</div><div class="ttdef"><b>Definition:</b> slice.h:64</div></div>
  171. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted_html"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html">grpc_slice::grpc_slice_data::grpc_slice_refcounted</a></div><div class="ttdef"><b>Definition:</b> slice.h:63</div></div>
  172. <div class="ttc" id="astructgrpc__slice__buffer_html_ac37e9d19ec31eab8f429d2b4af908256"><div class="ttname"><a href="structgrpc__slice__buffer.html#ac37e9d19ec31eab8f429d2b4af908256">grpc_slice_buffer::slices</a></div><div class="ttdeci">grpc_slice * slices</div><div class="ttdoc">slices in the array (Points to the first valid grpc_slice in the array)</div><div class="ttdef"><b>Definition:</b> slice.h:84</div></div>
  173. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined_html"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html">grpc_slice::grpc_slice_data::grpc_slice_inlined</a></div><div class="ttdef"><b>Definition:</b> slice.h:67</div></div>
  174. <div class="ttc" id="auniongrpc__slice_1_1grpc__slice__data_html"><div class="ttname"><a href="uniongrpc__slice_1_1grpc__slice__data.html">grpc_slice::grpc_slice_data</a></div><div class="ttdef"><b>Definition:</b> slice.h:62</div></div>
  175. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined_html_a252a85cb15f1793625ef88b1fa4f9f89"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__inlined.html#a252a85cb15f1793625ef88b1fa4f9f89">grpc_slice::grpc_slice_data::grpc_slice_inlined::length</a></div><div class="ttdeci">uint8_t length</div><div class="ttdef"><b>Definition:</b> slice.h:68</div></div>
  176. <div class="ttc" id="astructgrpc__slice__buffer_html_ac6b9b99f100ac02280fe6ba0edc754cc"><div class="ttname"><a href="structgrpc__slice__buffer.html#ac6b9b99f100ac02280fe6ba0edc754cc">grpc_slice_buffer::count</a></div><div class="ttdeci">size_t count</div><div class="ttdoc">the number of slices in the array</div><div class="ttdef"><b>Definition:</b> slice.h:86</div></div>
  177. <div class="ttc" id="auniongrpc__slice_1_1grpc__slice__data_html_ad3ffc4dc1a9dbde58f03a45e558e72a6"><div class="ttname"><a href="uniongrpc__slice_1_1grpc__slice__data.html#ad3ffc4dc1a9dbde58f03a45e558e72a6">grpc_slice::grpc_slice_data::inlined</a></div><div class="ttdeci">struct grpc_slice::grpc_slice_data::grpc_slice_inlined inlined</div></div>
  178. <div class="ttc" id="astructgrpc__slice__buffer_html_ad796dcdd16fbb680a7a5368228d20127"><div class="ttname"><a href="structgrpc__slice__buffer.html#ad796dcdd16fbb680a7a5368228d20127">grpc_slice_buffer::length</a></div><div class="ttdeci">size_t length</div><div class="ttdoc">the combined length of all slices in the array</div><div class="ttdef"><b>Definition:</b> slice.h:91</div></div>
  179. <div class="ttc" id="astructgrpc__slice_html"><div class="ttname"><a href="structgrpc__slice.html">grpc_slice</a></div><div class="ttdoc">A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].</div><div class="ttdef"><b>Definition:</b> slice.h:60</div></div>
  180. <div class="ttc" id="aimpl_2codegen_2slice_8h_html_a81db47a2be0a079aa797cd77f3864809"><div class="ttname"><a href="impl_2codegen_2slice_8h.html#a81db47a2be0a079aa797cd77f3864809">GRPC_SLICE_BUFFER_INLINE_ELEMENTS</a></div><div class="ttdeci">#define GRPC_SLICE_BUFFER_INLINE_ELEMENTS</div><div class="ttdef"><b>Definition:</b> slice.h:74</div></div>
  181. <div class="ttc" id="auniongrpc__slice_1_1grpc__slice__data_html_a6b1bb3c74a54421cc98b2b0b3bfd1069"><div class="ttname"><a href="uniongrpc__slice_1_1grpc__slice__data.html#a6b1bb3c74a54421cc98b2b0b3bfd1069">grpc_slice::grpc_slice_data::refcounted</a></div><div class="ttdeci">struct grpc_slice::grpc_slice_data::grpc_slice_refcounted refcounted</div></div>
  182. <div class="ttc" id="aimpl_2codegen_2slice_8h_html_ae65fc74cb3afbcd3299a1c93f90bae20"><div class="ttname"><a href="impl_2codegen_2slice_8h.html#ae65fc74cb3afbcd3299a1c93f90bae20">GRPC_SLICE_INLINED_SIZE</a></div><div class="ttdeci">#define GRPC_SLICE_INLINED_SIZE</div><div class="ttdef"><b>Definition:</b> slice.h:47</div></div>
  183. <div class="ttc" id="aimpl_2codegen_2port__platform_8h_html"><div class="ttname"><a href="impl_2codegen_2port__platform_8h.html">port_platform.h</a></div></div>
  184. <div class="ttc" id="astructgrpc__slice_html_a935f767d484585d016725be83e34917c"><div class="ttname"><a href="structgrpc__slice.html#a935f767d484585d016725be83e34917c">grpc_slice::data</a></div><div class="ttdeci">union grpc_slice::grpc_slice_data data</div></div>
  185. <div class="ttc" id="aimpl_2codegen_2slice_8h_html_a7aef9f4bf29684d4c69b6fdd3d9399be"><div class="ttname"><a href="impl_2codegen_2slice_8h.html#a7aef9f4bf29684d4c69b6fdd3d9399be">grpc_slice_buffer</a></div><div class="ttdeci">struct grpc_slice_buffer grpc_slice_buffer</div><div class="ttdoc">Represents an expandable array of slices, to be interpreted as a single item.</div></div>
  186. <div class="ttc" id="astructgrpc__slice__buffer_html_a52a8e83b31006d685d98ce4db16520d8"><div class="ttname"><a href="structgrpc__slice__buffer.html#a52a8e83b31006d685d98ce4db16520d8">grpc_slice_buffer::base_slices</a></div><div class="ttdeci">grpc_slice * base_slices</div><div class="ttdoc">This is for internal use only.</div><div class="ttdef"><b>Definition:</b> slice.h:81</div></div>
  187. <div class="ttc" id="astructgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted_html_abeb23ef5c6395ccd04908b9d7227a566"><div class="ttname"><a href="structgrpc__slice_1_1grpc__slice__data_1_1grpc__slice__refcounted.html#abeb23ef5c6395ccd04908b9d7227a566">grpc_slice::grpc_slice_data::grpc_slice_refcounted::bytes</a></div><div class="ttdeci">uint8_t * bytes</div><div class="ttdef"><b>Definition:</b> slice.h:65</div></div>
  188. <div class="ttc" id="astructgrpc__slice__buffer_html_a8f35fa07c9a4d9f9a4e088a1155e5833"><div class="ttname"><a href="structgrpc__slice__buffer.html#a8f35fa07c9a4d9f9a4e088a1155e5833">grpc_slice_buffer::capacity</a></div><div class="ttdeci">size_t capacity</div><div class="ttdoc">the number of slices allocated in the array.</div><div class="ttdef"><b>Definition:</b> slice.h:89</div></div>
  189. <div class="ttc" id="agpr__slice_8h_html"><div class="ttname"><a href="gpr__slice_8h.html">gpr_slice.h</a></div></div>
  190. <div class="ttc" id="astructgrpc__slice__buffer_html"><div class="ttname"><a href="structgrpc__slice__buffer.html">grpc_slice_buffer</a></div><div class="ttdoc">Represents an expandable array of slices, to be interpreted as a single item.</div><div class="ttdef"><b>Definition:</b> slice.h:78</div></div>
  191. <!-- start footer part -->
  192. <hr class="footer"/><address class="footer"><small>
  193. Generated on Wed Mar 3 2021 19:17:09 for GRPC Core by &#160;<a href="http://www.doxygen.org/index.html">
  194. <img class="footer" src="doxygen.png" alt="doxygen"/>
  195. </a> 1.8.17
  196. </small></address>
  197. </body>
  198. </html>