compression_8h.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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 C++: include/grpc/compression.h File 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.36.1</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> </ul>
  64. </div>
  65. </div><!-- top -->
  66. <div class="header">
  67. <div class="summary">
  68. <a href="#func-members">Functions</a> </div>
  69. <div class="headertitle">
  70. <div class="title">compression.h File Reference</div> </div>
  71. </div><!--header-->
  72. <div class="contents">
  73. <div class="textblock"><code>#include &lt;<a class="el" href="impl_2codegen_2port__platform_8h_source.html">grpc/impl/codegen/port_platform.h</a>&gt;</code><br />
  74. <code>#include &lt;stdlib.h&gt;</code><br />
  75. <code>#include &lt;<a class="el" href="compression__types_8h_source.html">grpc/impl/codegen/compression_types.h</a>&gt;</code><br />
  76. <code>#include &lt;<a class="el" href="grpc_2slice_8h_source.html">grpc/slice.h</a>&gt;</code><br />
  77. </div>
  78. <p><a href="compression_8h_source.html">Go to the source code of this file.</a></p>
  79. <table class="memberdecls">
  80. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  81. Functions</h2></td></tr>
  82. <tr class="memitem:af41160f827a3ff132755fb25658435c4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#af41160f827a3ff132755fb25658435c4">grpc_compression_algorithm_is_message</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  83. <tr class="memdesc:af41160f827a3ff132755fb25658435c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if an algorithm is message compression algorithm. <a href="compression_8h.html#af41160f827a3ff132755fb25658435c4">More...</a><br /></td></tr>
  84. <tr class="separator:af41160f827a3ff132755fb25658435c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a053257ed8bdeba196b380f326897e25d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a053257ed8bdeba196b380f326897e25d">grpc_compression_algorithm_is_stream</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  86. <tr class="memdesc:a053257ed8bdeba196b380f326897e25d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if an algorithm is stream compression algorithm. <a href="compression_8h.html#a053257ed8bdeba196b380f326897e25d">More...</a><br /></td></tr>
  87. <tr class="separator:a053257ed8bdeba196b380f326897e25d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a181bd18d294ab2bf93b10b8add9f88e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a181bd18d294ab2bf93b10b8add9f88e2">grpc_compression_algorithm_parse</a> (<a class="el" href="structgrpc__slice.html">grpc_slice</a> name, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> *algorithm)</td></tr>
  89. <tr class="memdesc:a181bd18d294ab2bf93b10b8add9f88e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses the <em>slice</em> as a grpc_compression_algorithm instance and updating <em>algorithm</em>. <a href="compression_8h.html#a181bd18d294ab2bf93b10b8add9f88e2">More...</a><br /></td></tr>
  90. <tr class="separator:a181bd18d294ab2bf93b10b8add9f88e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a177f6d6330355d5ecaffb042ab1c2c8f">grpc_compression_algorithm_name</a> (<a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm, const char **name)</td></tr>
  92. <tr class="memdesc:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates <em>name</em> with the encoding name corresponding to a valid <em>algorithm</em>. <a href="compression_8h.html#a177f6d6330355d5ecaffb042ab1c2c8f">More...</a><br /></td></tr>
  93. <tr class="separator:a177f6d6330355d5ecaffb042ab1c2c8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#adc2d1d89d880f67aacc4ce84cd72f8f3">grpc_compression_algorithm_for_level</a> (<a class="el" href="compression__types_8h.html#a14a79ed6b5ebd7e1dda7c2684f499cc7">grpc_compression_level</a> level, uint32_t accepted_encodings)</td></tr>
  95. <tr class="memdesc:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the compression algorithm corresponding to <em>level</em> for the compression algorithms encoded in the <em>accepted_encodings</em> bitset. <a href="compression_8h.html#adc2d1d89d880f67aacc4ce84cd72f8f3">More...</a><br /></td></tr>
  96. <tr class="separator:adc2d1d89d880f67aacc4ce84cd72f8f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a2eccdbe5a4d811a7c965d6d67e5cc7d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a2eccdbe5a4d811a7c965d6d67e5cc7d8">grpc_compression_options_init</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts)</td></tr>
  98. <tr class="separator:a2eccdbe5a4d811a7c965d6d67e5cc7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a79e61d1ac1d226b3b54b73837f28f0ff">grpc_compression_options_enable_algorithm</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  100. <tr class="memdesc:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark <em>algorithm</em> as enabled in <em>opts</em>. <a href="compression_8h.html#a79e61d1ac1d226b3b54b73837f28f0ff">More...</a><br /></td></tr>
  101. <tr class="separator:a79e61d1ac1d226b3b54b73837f28f0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#a1b58d314775a3651ee2f5f2d3ab4f6d9">grpc_compression_options_disable_algorithm</a> (<a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  103. <tr class="memdesc:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark <em>algorithm</em> as disabled in <em>opts</em>. <a href="compression_8h.html#a1b58d314775a3651ee2f5f2d3ab4f6d9">More...</a><br /></td></tr>
  104. <tr class="separator:a1b58d314775a3651ee2f5f2d3ab4f6d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:aba0dfe631311c3f49d1045694bc9b0df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="compression_8h.html#aba0dfe631311c3f49d1045694bc9b0df">grpc_compression_options_is_algorithm_enabled</a> (const <a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *opts, <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> algorithm)</td></tr>
  106. <tr class="memdesc:aba0dfe631311c3f49d1045694bc9b0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if <em>algorithm</em> is marked as enabled in <em>opts</em>. <a href="compression_8h.html#aba0dfe631311c3f49d1045694bc9b0df">More...</a><br /></td></tr>
  107. <tr class="separator:aba0dfe631311c3f49d1045694bc9b0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. </table>
  109. <h2 class="groupheader">Function Documentation</h2>
  110. <a id="adc2d1d89d880f67aacc4ce84cd72f8f3"></a>
  111. <h2 class="memtitle"><span class="permalink"><a href="#adc2d1d89d880f67aacc4ce84cd72f8f3">&#9670;&nbsp;</a></span>grpc_compression_algorithm_for_level()</h2>
  112. <div class="memitem">
  113. <div class="memproto">
  114. <table class="memname">
  115. <tr>
  116. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> <a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> grpc_compression_algorithm_for_level </td>
  117. <td>(</td>
  118. <td class="paramtype"><a class="el" href="compression__types_8h.html#a14a79ed6b5ebd7e1dda7c2684f499cc7">grpc_compression_level</a>&#160;</td>
  119. <td class="paramname"><em>level</em>, </td>
  120. </tr>
  121. <tr>
  122. <td class="paramkey"></td>
  123. <td></td>
  124. <td class="paramtype">uint32_t&#160;</td>
  125. <td class="paramname"><em>accepted_encodings</em>&#160;</td>
  126. </tr>
  127. <tr>
  128. <td></td>
  129. <td>)</td>
  130. <td></td><td></td>
  131. </tr>
  132. </table>
  133. </div><div class="memdoc">
  134. <p>Returns the compression algorithm corresponding to <em>level</em> for the compression algorithms encoded in the <em>accepted_encodings</em> bitset. </p>
  135. </div>
  136. </div>
  137. <a id="af41160f827a3ff132755fb25658435c4"></a>
  138. <h2 class="memtitle"><span class="permalink"><a href="#af41160f827a3ff132755fb25658435c4">&#9670;&nbsp;</a></span>grpc_compression_algorithm_is_message()</h2>
  139. <div class="memitem">
  140. <div class="memproto">
  141. <table class="memname">
  142. <tr>
  143. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_is_message </td>
  144. <td>(</td>
  145. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  146. <td class="paramname"><em>algorithm</em></td><td>)</td>
  147. <td></td>
  148. </tr>
  149. </table>
  150. </div><div class="memdoc">
  151. <p>Return if an algorithm is message compression algorithm. </p>
  152. </div>
  153. </div>
  154. <a id="a053257ed8bdeba196b380f326897e25d"></a>
  155. <h2 class="memtitle"><span class="permalink"><a href="#a053257ed8bdeba196b380f326897e25d">&#9670;&nbsp;</a></span>grpc_compression_algorithm_is_stream()</h2>
  156. <div class="memitem">
  157. <div class="memproto">
  158. <table class="memname">
  159. <tr>
  160. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_is_stream </td>
  161. <td>(</td>
  162. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  163. <td class="paramname"><em>algorithm</em></td><td>)</td>
  164. <td></td>
  165. </tr>
  166. </table>
  167. </div><div class="memdoc">
  168. <p>Return if an algorithm is stream compression algorithm. </p>
  169. </div>
  170. </div>
  171. <a id="a177f6d6330355d5ecaffb042ab1c2c8f"></a>
  172. <h2 class="memtitle"><span class="permalink"><a href="#a177f6d6330355d5ecaffb042ab1c2c8f">&#9670;&nbsp;</a></span>grpc_compression_algorithm_name()</h2>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_name </td>
  178. <td>(</td>
  179. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  180. <td class="paramname"><em>algorithm</em>, </td>
  181. </tr>
  182. <tr>
  183. <td class="paramkey"></td>
  184. <td></td>
  185. <td class="paramtype">const char **&#160;</td>
  186. <td class="paramname"><em>name</em>&#160;</td>
  187. </tr>
  188. <tr>
  189. <td></td>
  190. <td>)</td>
  191. <td></td><td></td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>Updates <em>name</em> with the encoding name corresponding to a valid <em>algorithm</em>. </p>
  196. <p>Note that <em>name</em> is statically allocated and must <em>not</em> be freed. Returns 1 upon success, 0 otherwise. </p>
  197. </div>
  198. </div>
  199. <a id="a181bd18d294ab2bf93b10b8add9f88e2"></a>
  200. <h2 class="memtitle"><span class="permalink"><a href="#a181bd18d294ab2bf93b10b8add9f88e2">&#9670;&nbsp;</a></span>grpc_compression_algorithm_parse()</h2>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="memname">
  204. <tr>
  205. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_algorithm_parse </td>
  206. <td>(</td>
  207. <td class="paramtype"><a class="el" href="structgrpc__slice.html">grpc_slice</a>&#160;</td>
  208. <td class="paramname"><em>name</em>, </td>
  209. </tr>
  210. <tr>
  211. <td class="paramkey"></td>
  212. <td></td>
  213. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a> *&#160;</td>
  214. <td class="paramname"><em>algorithm</em>&#160;</td>
  215. </tr>
  216. <tr>
  217. <td></td>
  218. <td>)</td>
  219. <td></td><td></td>
  220. </tr>
  221. </table>
  222. </div><div class="memdoc">
  223. <p>Parses the <em>slice</em> as a grpc_compression_algorithm instance and updating <em>algorithm</em>. </p>
  224. <p>Returns 1 upon success, 0 otherwise. </p>
  225. </div>
  226. </div>
  227. <a id="a1b58d314775a3651ee2f5f2d3ab4f6d9"></a>
  228. <h2 class="memtitle"><span class="permalink"><a href="#a1b58d314775a3651ee2f5f2d3ab4f6d9">&#9670;&nbsp;</a></span>grpc_compression_options_disable_algorithm()</h2>
  229. <div class="memitem">
  230. <div class="memproto">
  231. <table class="memname">
  232. <tr>
  233. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_disable_algorithm </td>
  234. <td>(</td>
  235. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  236. <td class="paramname"><em>opts</em>, </td>
  237. </tr>
  238. <tr>
  239. <td class="paramkey"></td>
  240. <td></td>
  241. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  242. <td class="paramname"><em>algorithm</em>&#160;</td>
  243. </tr>
  244. <tr>
  245. <td></td>
  246. <td>)</td>
  247. <td></td><td></td>
  248. </tr>
  249. </table>
  250. </div><div class="memdoc">
  251. <p>Mark <em>algorithm</em> as disabled in <em>opts</em>. </p>
  252. </div>
  253. </div>
  254. <a id="a79e61d1ac1d226b3b54b73837f28f0ff"></a>
  255. <h2 class="memtitle"><span class="permalink"><a href="#a79e61d1ac1d226b3b54b73837f28f0ff">&#9670;&nbsp;</a></span>grpc_compression_options_enable_algorithm()</h2>
  256. <div class="memitem">
  257. <div class="memproto">
  258. <table class="memname">
  259. <tr>
  260. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_enable_algorithm </td>
  261. <td>(</td>
  262. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  263. <td class="paramname"><em>opts</em>, </td>
  264. </tr>
  265. <tr>
  266. <td class="paramkey"></td>
  267. <td></td>
  268. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  269. <td class="paramname"><em>algorithm</em>&#160;</td>
  270. </tr>
  271. <tr>
  272. <td></td>
  273. <td>)</td>
  274. <td></td><td></td>
  275. </tr>
  276. </table>
  277. </div><div class="memdoc">
  278. <p>Mark <em>algorithm</em> as enabled in <em>opts</em>. </p>
  279. </div>
  280. </div>
  281. <a id="a2eccdbe5a4d811a7c965d6d67e5cc7d8"></a>
  282. <h2 class="memtitle"><span class="permalink"><a href="#a2eccdbe5a4d811a7c965d6d67e5cc7d8">&#9670;&nbsp;</a></span>grpc_compression_options_init()</h2>
  283. <div class="memitem">
  284. <div class="memproto">
  285. <table class="memname">
  286. <tr>
  287. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> void grpc_compression_options_init </td>
  288. <td>(</td>
  289. <td class="paramtype"><a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  290. <td class="paramname"><em>opts</em></td><td>)</td>
  291. <td></td>
  292. </tr>
  293. </table>
  294. </div><div class="memdoc">
  295. </div>
  296. </div>
  297. <a id="aba0dfe631311c3f49d1045694bc9b0df"></a>
  298. <h2 class="memtitle"><span class="permalink"><a href="#aba0dfe631311c3f49d1045694bc9b0df">&#9670;&nbsp;</a></span>grpc_compression_options_is_algorithm_enabled()</h2>
  299. <div class="memitem">
  300. <div class="memproto">
  301. <table class="memname">
  302. <tr>
  303. <td class="memname"><a class="el" href="impl_2codegen_2port__platform_8h.html#a2865c3b28ea7db75be4c725adb1edc7d">GRPCAPI</a> int grpc_compression_options_is_algorithm_enabled </td>
  304. <td>(</td>
  305. <td class="paramtype">const <a class="el" href="structgrpc__compression__options.html">grpc_compression_options</a> *&#160;</td>
  306. <td class="paramname"><em>opts</em>, </td>
  307. </tr>
  308. <tr>
  309. <td class="paramkey"></td>
  310. <td></td>
  311. <td class="paramtype"><a class="el" href="compression__types_8h.html#ab9de0f68bfb1ef8ed09bd00643db14c9">grpc_compression_algorithm</a>&#160;</td>
  312. <td class="paramname"><em>algorithm</em>&#160;</td>
  313. </tr>
  314. <tr>
  315. <td></td>
  316. <td>)</td>
  317. <td></td><td></td>
  318. </tr>
  319. </table>
  320. </div><div class="memdoc">
  321. <p>Returns true if <em>algorithm</em> is marked as enabled in <em>opts</em>. </p>
  322. </div>
  323. </div>
  324. </div><!-- contents -->
  325. <!-- start footer part -->
  326. <hr class="footer"/><address class="footer"><small>
  327. Generated on Wed Mar 3 2021 19:17:22 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  328. <img class="footer" src="doxygen.png" alt="doxygen"/>
  329. </a> 1.8.17
  330. </small></address>
  331. </body>
  332. </html>