grpc_2impl_2codegen_2slice_8h_source.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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++: 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 C++
  25. &#160;<span id="projectnumber">1.23.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="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>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="headertitle">
  65. <div class="title">slice.h</div> </div>
  66. </div><!--header-->
  67. <div class="contents">
  68. <a href="grpc_2impl_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><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015 gRPC authors.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><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><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><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><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><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><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><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><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><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><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><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GRPC_IMPL_CODEGEN_SLICE_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GRPC_IMPL_CODEGEN_SLICE_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><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><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><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><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="grpc_2impl_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><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><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><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment"> by this many bytes */</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#a6a30245ea694a3915b1413a2f50c9b54"> 45</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_INLINE_EXTRA_SIZE sizeof(void*)</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#ae65fc74cb3afbcd3299a1c93f90bae20"> 47</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_INLINED_SIZE \</span></div><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><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">struct </span>grpc_slice_refcount;</div><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><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><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><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><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><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><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; } <a class="code" href="uniongrpc__slice_1_1grpc__slice__data.html#a7ff9bca8b0e10a05607d81643352659e">refcounted</a>;</div><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><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><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__refcounted.html#abeb23ef5c6395ccd04908b9d7227a566">bytes</a>[<a class="code" href="grpc_2impl_2codegen_2slice_8h.html#ae65fc74cb3afbcd3299a1c93f90bae20">GRPC_SLICE_INLINED_SIZE</a>];</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; } <a class="code" href="uniongrpc__slice_1_1grpc__slice__data.html#add6546143f511291a173ed5bb85e66f5">inlined</a>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; } <a class="code" href="structgrpc__slice.html#a6eb5c7533d3e14d4867ffcc1c906456e">data</a>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;};</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#a81db47a2be0a079aa797cd77f3864809"> 74</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_BUFFER_INLINE_ELEMENTS 8</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><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><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><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><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><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><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><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><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="uniongrpc__slice_1_1grpc__slice__data.html#add6546143f511291a173ed5bb85e66f5">inlined</a>[<a class="code" href="grpc_2impl_2codegen_2slice_8h.html#a81db47a2be0a079aa797cd77f3864809">GRPC_SLICE_BUFFER_INLINE_ELEMENTS</a>];</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;} <a class="code" href="grpc_2impl_2codegen_2slice_8h.html#a96ab1e43093bbd3fa178ae2e819863e4">grpc_slice_buffer</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#a8a15783c251cdeb18c3f8b0ad41d0352"> 96</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_START_PTR(slice) \</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.bytes \</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="preprocessor"> : (slice).data.inlined.bytes)</span></div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#ae965fb2ee1a646253cdbd49d82b0b6c5"> 99</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_LENGTH(slice) \</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.length \</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor"> : (slice).data.inlined.length)</span></div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#a6791fa7be0a1a9144e005cfea7baea84"> 102</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_SET_LENGTH(slice, newlen) \</span></div><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><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><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="grpc_2impl_2codegen_2slice_8h.html#a96535019e10a540192c1f276ec049a56"> 105</a></span>&#160;<span class="preprocessor">#define GRPC_SLICE_END_PTR(slice) \</span></div><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><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="grpc_2impl_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><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="preprocessor">#ifdef GRPC_ALLOW_GPR_SLICE_FUNCTIONS</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="comment">/* Duplicate GPR_* definitions */</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="preprocessor">#define GPR_SLICE_START_PTR(slice) \</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.bytes \</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor"> : (slice).data.inlined.bytes)</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="preprocessor">#define GPR_SLICE_LENGTH(slice) \</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="preprocessor"> ((slice).refcount ? (slice).data.refcounted.length \</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="preprocessor"> : (slice).data.inlined.length)</span></div><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><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><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><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="preprocessor">#define GPR_SLICE_END_PTR(slice) \</span></div><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><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><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><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><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><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><div class="ttc" id="uniongrpc__slice_1_1grpc__slice__data_html_add6546143f511291a173ed5bb85e66f5"><div class="ttname"><a href="uniongrpc__slice_1_1grpc__slice__data.html#add6546143f511291a173ed5bb85e66f5">grpc_slice::grpc_slice_data::inlined</a></div><div class="ttdeci">struct grpc_slice::grpc_slice_data::grpc_slice_inlined inlined</div></div>
  69. <div class="ttc" id="grpc_2impl_2codegen_2slice_8h_html_a96ab1e43093bbd3fa178ae2e819863e4"><div class="ttname"><a href="grpc_2impl_2codegen_2slice_8h.html#a96ab1e43093bbd3fa178ae2e819863e4">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>
  70. <div class="ttc" id="structgrpc__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>
  71. <div class="ttc" id="structgrpc__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>
  72. <div class="ttc" id="structgrpc__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>
  73. <div class="ttc" id="structgrpc__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>
  74. <div class="ttc" id="structgrpc__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>
  75. <div class="ttc" id="uniongrpc__slice_1_1grpc__slice__data_html_a7ff9bca8b0e10a05607d81643352659e"><div class="ttname"><a href="uniongrpc__slice_1_1grpc__slice__data.html#a7ff9bca8b0e10a05607d81643352659e">grpc_slice::grpc_slice_data::refcounted</a></div><div class="ttdeci">struct grpc_slice::grpc_slice_data::grpc_slice_refcounted refcounted</div></div>
  76. <div class="ttc" id="grpc_2impl_2codegen_2slice_8h_html_ae65fc74cb3afbcd3299a1c93f90bae20"><div class="ttname"><a href="grpc_2impl_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>
  77. <div class="ttc" id="structgrpc__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>
  78. <div class="ttc" id="structgrpc__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>
  79. <div class="ttc" id="structgrpc__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>
  80. <div class="ttc" id="structgrpc__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>
  81. <div class="ttc" id="grpc_2impl_2codegen_2slice_8h_html_a81db47a2be0a079aa797cd77f3864809"><div class="ttname"><a href="grpc_2impl_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>
  82. <div class="ttc" id="structgrpc__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>
  83. <div class="ttc" id="structgrpc__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>
  84. <div class="ttc" id="structgrpc__slice_html_a6eb5c7533d3e14d4867ffcc1c906456e"><div class="ttname"><a href="structgrpc__slice.html#a6eb5c7533d3e14d4867ffcc1c906456e">grpc_slice::data</a></div><div class="ttdeci">union grpc_slice::grpc_slice_data data</div></div>
  85. <div class="ttc" id="uniongrpc__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>
  86. <div class="ttc" id="structgrpc__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>
  87. <div class="ttc" id="impl_2codegen_2port__platform_8h_html"><div class="ttname"><a href="impl_2codegen_2port__platform_8h.html">port_platform.h</a></div></div>
  88. <div class="ttc" id="structgrpc__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>
  89. <div class="ttc" id="gpr__slice_8h_html"><div class="ttname"><a href="gpr__slice_8h.html">gpr_slice.h</a></div></div>
  90. </div><!-- fragment --></div><!-- contents -->
  91. <!-- start footer part -->
  92. <hr class="footer"/><address class="footer"><small>
  93. Generated on Mon Aug 19 2019 12:05:22 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  94. <img class="footer" src="doxygen.png" alt="doxygen"/>
  95. </a> 1.8.13
  96. </small></address>
  97. </body>
  98. </html>