| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=9"/><meta name="generator" content="Doxygen 1.8.17"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>GRPC Core: grpc_slice Struct Reference</title><link href="tabs.css" rel="stylesheet" type="text/css"/><script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="dynsections.js"></script><link href="search/search.css" rel="stylesheet" type="text/css"/><script type="text/javascript" src="search/searchdata.js"></script><script type="text/javascript" src="search/search.js"></script><link href="doxygen.css" rel="stylesheet" type="text/css" /></head><body><div id="top"><!-- do not remove this div, it is closed by doxygen! --><div id="titlearea"><table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;">  <td id="projectalign" style="padding-left: 0.5em;">   <div id="projectname">GRPC Core    <span id="projectnumber">15.0.0</span>   </div>  </td> </tr> </tbody></table></div><!-- end header part --><!-- Generated by Doxygen 1.8.17 --><script type="text/javascript">/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */var searchBox = new SearchBox("searchBox", "search",false,'Search');/* @license-end */</script><script type="text/javascript" src="menudata.js"></script><script type="text/javascript" src="menu.js"></script><script type="text/javascript">/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */$(function() {  initMenu('',true,false,'search.php','Search');  $(document).ready(function() { init_search(); });});/* @license-end */</script><div id="main-nav"></div><!-- window showing the filter options --><div id="MSearchSelectWindow"     onmouseover="return searchBox.OnSearchSelectShow()"     onmouseout="return searchBox.OnSearchSelectHide()"     onkeydown="return searchBox.OnSearchSelectKey(event)"></div><!-- iframe showing the search results (closed by default) --><div id="MSearchResultsWindow"><iframe src="javascript:void(0)" frameborder="0"         name="MSearchResults" id="MSearchResults"></iframe></div></div><!-- top --><div class="header">  <div class="summary"><a href="#nested-classes">Data Structures</a> |<a href="#pub-attribs">Data Fields</a>  </div>  <div class="headertitle"><div class="title">grpc_slice Struct Reference</div>  </div></div><!--header--><div class="contents"><p>A <a class="el" href="structgrpc__slice.html" title="A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].">grpc_slice</a> s, if initialized, represents the byte range s.bytes[0..s.length-1].   <a href="structgrpc__slice.html#details">More...</a></p><p><code>#include <<a class="el" href="impl_2codegen_2slice_8h_source.html">slice.h</a>></code></p><table class="memberdecls"><tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>Data Structures</h2></td></tr><tr class="memitem:"><td class="memItemLeft" align="right" valign="top">union  </td><td class="memItemRight" valign="bottom"><a class="el" href="uniongrpc__slice_1_1grpc__slice__data.html">grpc_slice_data</a></td></tr><tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr></table><table class="memberdecls"><tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>Data Fields</h2></td></tr><tr class="memitem:a467ef319d024f1897c7ff3bdadb78493"><td class="memItemLeft" align="right" valign="top">struct grpc_slice_refcount * </td><td class="memItemRight" valign="bottom"><a class="el" href="structgrpc__slice.html#a467ef319d024f1897c7ff3bdadb78493">refcount</a></td></tr><tr class="separator:a467ef319d024f1897c7ff3bdadb78493"><td class="memSeparator" colspan="2"> </td></tr><tr class="memitem:a935f767d484585d016725be83e34917c"><td class="memItemLeft" align="right" valign="top">union <a class="el" href="uniongrpc__slice_1_1grpc__slice__data.html">grpc_slice::grpc_slice_data</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structgrpc__slice.html#a935f767d484585d016725be83e34917c">data</a></td></tr><tr class="separator:a935f767d484585d016725be83e34917c"><td class="memSeparator" colspan="2"> </td></tr></table><a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2><div class="textblock"><p>A <a class="el" href="structgrpc__slice.html" title="A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].">grpc_slice</a> s, if initialized, represents the byte range s.bytes[0..s.length-1]. </p><p>It can have an associated ref count which has a destruction routine to be run when the ref count reaches zero (see <a class="el" href="slice_8h.html#a85704b2e5f1c8d70e728e86ad6d1ca0a" title="Create a slice pointing at some data.">grpc_slice_new()</a> and grp_slice_unref()). Multiple <a class="el" href="structgrpc__slice.html" title="A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].">grpc_slice</a> values may share a ref count.</p><p>If the slice does not have a refcount, it represents an inlined small piece of data that is copied by value. </p></div><h2 class="groupheader">Field Documentation</h2><a id="a935f767d484585d016725be83e34917c"></a><h2 class="memtitle"><span class="permalink"><a href="#a935f767d484585d016725be83e34917c">◆ </a></span>data</h2><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">union <a class="el" href="uniongrpc__slice_1_1grpc__slice__data.html">grpc_slice::grpc_slice_data</a> grpc_slice::data</td>        </tr>      </table></div><div class="memdoc"></div></div><a id="a467ef319d024f1897c7ff3bdadb78493"></a><h2 class="memtitle"><span class="permalink"><a href="#a467ef319d024f1897c7ff3bdadb78493">◆ </a></span>refcount</h2><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">struct grpc_slice_refcount* grpc_slice::refcount</td>        </tr>      </table></div><div class="memdoc"></div></div><hr/>The documentation for this struct was generated from the following file:<ul><li>include/grpc/impl/codegen/<a class="el" href="impl_2codegen_2slice_8h_source.html">slice.h</a></li></ul></div><!-- contents --><!-- start footer part --><hr class="footer"/><address class="footer"><small>Generated on Wed Mar 3 2021 19:17:11 for GRPC Core by  <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17</small></address></body></html>
 |