aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/ref/core/html/slice_8h.html
blob: fd3a6f5cef1689b6347c224e6c1f8bccc1136c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.6"/>
<title>GRPC Core: include/grpc/support/slice.h File 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/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
   <div id="projectname">GRPC Core
   &#160;<span id="projectnumber">0.11.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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 id="nav-path" class="navpath">
  <ul>
<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_cad3142e04109052413f2d2a2d1813b0.html">support</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">slice.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="sync_8h_source.html">grpc/support/sync.h</a>&gt;</code><br/>
<code>#include &lt;stddef.h&gt;</code><br/>
</div>
<p><a href="slice_8h_source.html">Go to the source code of this file.</a></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">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgpr__slice__refcount.html">gpr_slice_refcount</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgpr__slice.html">gpr_slice</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a4063c3d8d4820472a4cf2655dd662a31"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a4063c3d8d4820472a4cf2655dd662a31">GPR_SLICE_INLINED_SIZE</a>&#160;&#160;&#160;(sizeof(size_t) + sizeof(<a class="el" href="port__platform_8h.html#aeeb41e29e7c7a916a4e0fb6cfb9f92e0">gpr_uint8</a> *) - 1)</td></tr>
<tr class="separator:a4063c3d8d4820472a4cf2655dd662a31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8258afc3398c1426974b0b48dbf5a15"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ab8258afc3398c1426974b0b48dbf5a15">GPR_SLICE_START_PTR</a>(slice)</td></tr>
<tr class="separator:ab8258afc3398c1426974b0b48dbf5a15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae97c2f992c1ebccaf44ceeee1f9fdabb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ae97c2f992c1ebccaf44ceeee1f9fdabb">GPR_SLICE_LENGTH</a>(slice)</td></tr>
<tr class="separator:ae97c2f992c1ebccaf44ceeee1f9fdabb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f5333a1260aef2efe086d4e2188e613"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a1f5333a1260aef2efe086d4e2188e613">GPR_SLICE_SET_LENGTH</a>(slice, newlen)</td></tr>
<tr class="separator:a1f5333a1260aef2efe086d4e2188e613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b7e9acd0eb92039a9bc897712a62a14"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a9b7e9acd0eb92039a9bc897712a62a14">GPR_SLICE_END_PTR</a>(slice)&#160;&#160;&#160;<a class="el" href="slice_8h.html#ab8258afc3398c1426974b0b48dbf5a15">GPR_SLICE_START_PTR</a>(slice) + <a class="el" href="slice_8h.html#ae97c2f992c1ebccaf44ceeee1f9fdabb">GPR_SLICE_LENGTH</a>(slice)</td></tr>
<tr class="separator:a9b7e9acd0eb92039a9bc897712a62a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4fe3efa7a8938045ce79271d79f79ef"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ad4fe3efa7a8938045ce79271d79f79ef">GPR_SLICE_IS_EMPTY</a>(slice)&#160;&#160;&#160;(<a class="el" href="slice_8h.html#ae97c2f992c1ebccaf44ceeee1f9fdabb">GPR_SLICE_LENGTH</a>(slice) == 0)</td></tr>
<tr class="separator:ad4fe3efa7a8938045ce79271d79f79ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:af8841873e741f6cf38b2192147ea4f3e"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structgpr__slice__refcount.html">gpr_slice_refcount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#af8841873e741f6cf38b2192147ea4f3e">gpr_slice_refcount</a></td></tr>
<tr class="separator:af8841873e741f6cf38b2192147ea4f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91fe16db371db7c53d6e3adc90a6678c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a91fe16db371db7c53d6e3adc90a6678c">gpr_slice</a></td></tr>
<tr class="separator:a91fe16db371db7c53d6e3adc90a6678c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad28a2bcca348046cbe660a44180e75ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ad28a2bcca348046cbe660a44180e75ca">gpr_slice_ref</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> s)</td></tr>
<tr class="separator:ad28a2bcca348046cbe660a44180e75ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a024429b0dd15e43a09e48e35ca8810d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a024429b0dd15e43a09e48e35ca8810d7">gpr_slice_unref</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> s)</td></tr>
<tr class="separator:a024429b0dd15e43a09e48e35ca8810d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea43587a11bfe2e06fb8532035229bb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#aea43587a11bfe2e06fb8532035229bb2">gpr_slice_new</a> (void *p, size_t len, void(*destroy)(void *))</td></tr>
<tr class="separator:aea43587a11bfe2e06fb8532035229bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affd1fef2ffaca67e0b2e7b60923da812"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#affd1fef2ffaca67e0b2e7b60923da812">gpr_slice_new_with_len</a> (void *p, size_t len, void(*destroy)(void *, size_t))</td></tr>
<tr class="separator:affd1fef2ffaca67e0b2e7b60923da812"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab57463740ccedc00b50721dce66ebd7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ab57463740ccedc00b50721dce66ebd7b">gpr_slice_malloc</a> (size_t length)</td></tr>
<tr class="separator:ab57463740ccedc00b50721dce66ebd7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf4df32e55b1b09d3f11c39447dcc68b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#adf4df32e55b1b09d3f11c39447dcc68b">gpr_slice_from_copied_string</a> (const char *source)</td></tr>
<tr class="separator:adf4df32e55b1b09d3f11c39447dcc68b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83e8110a7a98132963f01eb9c7f7418e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a83e8110a7a98132963f01eb9c7f7418e">gpr_slice_from_copied_buffer</a> (const char *source, size_t len)</td></tr>
<tr class="separator:a83e8110a7a98132963f01eb9c7f7418e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d4e6e264e22c6c6d3748f522da91eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#ac9d4e6e264e22c6c6d3748f522da91eb">gpr_slice_sub</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> s, size_t begin, size_t end)</td></tr>
<tr class="separator:ac9d4e6e264e22c6c6d3748f522da91eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accf08ddad530a5f1cca82c834dc70965"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#accf08ddad530a5f1cca82c834dc70965">gpr_slice_sub_no_ref</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> s, size_t begin, size_t end)</td></tr>
<tr class="separator:accf08ddad530a5f1cca82c834dc70965"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51315f2a9217a1d42711f48bfec9d39e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a51315f2a9217a1d42711f48bfec9d39e">gpr_slice_split_tail</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> *s, size_t split)</td></tr>
<tr class="separator:a51315f2a9217a1d42711f48bfec9d39e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a842ea6b4a9ab4d0d3becd6fda03bbc24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a842ea6b4a9ab4d0d3becd6fda03bbc24">gpr_slice_split_head</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> *s, size_t split)</td></tr>
<tr class="separator:a842ea6b4a9ab4d0d3becd6fda03bbc24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a8906400c956fb8c508326a072b0662"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#a1a8906400c956fb8c508326a072b0662">gpr_empty_slice</a> (void)</td></tr>
<tr class="separator:a1a8906400c956fb8c508326a072b0662"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add3c8736c46bea7517991f178c82ba3c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#add3c8736c46bea7517991f178c82ba3c">gpr_slice_cmp</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> a, <a class="el" href="structgpr__slice.html">gpr_slice</a> b)</td></tr>
<tr class="separator:add3c8736c46bea7517991f178c82ba3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef752203db50c932010a74c6845872c2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="slice_8h.html#aef752203db50c932010a74c6845872c2">gpr_slice_str_cmp</a> (<a class="el" href="structgpr__slice.html">gpr_slice</a> a, const char *b)</td></tr>
<tr class="separator:aef752203db50c932010a74c6845872c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a9b7e9acd0eb92039a9bc897712a62a14"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_END_PTR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">slice</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="slice_8h.html#ab8258afc3398c1426974b0b48dbf5a15">GPR_SLICE_START_PTR</a>(slice) + <a class="el" href="slice_8h.html#ae97c2f992c1ebccaf44ceeee1f9fdabb">GPR_SLICE_LENGTH</a>(slice)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4063c3d8d4820472a4cf2655dd662a31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_INLINED_SIZE&#160;&#160;&#160;(sizeof(size_t) + sizeof(<a class="el" href="port__platform_8h.html#aeeb41e29e7c7a916a4e0fb6cfb9f92e0">gpr_uint8</a> *) - 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad4fe3efa7a8938045ce79271d79f79ef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_IS_EMPTY</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">slice</td><td>)</td>
          <td>&#160;&#160;&#160;(<a class="el" href="slice_8h.html#ae97c2f992c1ebccaf44ceeee1f9fdabb">GPR_SLICE_LENGTH</a>(slice) == 0)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae97c2f992c1ebccaf44ceeee1f9fdabb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_LENGTH</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">slice</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((slice).refcount ? (slice).data.refcounted.length \</div>
<div class="line">                    : (slice).data.inlined.length)</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1f5333a1260aef2efe086d4e2188e613"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_SET_LENGTH</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">slice, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">newlen&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \</div>
<div class="line">                    : ((slice).data.inlined.length = (<a class="code" href="port__platform_8h.html#aeeb41e29e7c7a916a4e0fb6cfb9f92e0">gpr_uint8</a>)(newlen)))</div>
<div class="ttc" id="port__platform_8h_html_aeeb41e29e7c7a916a4e0fb6cfb9f92e0"><div class="ttname"><a href="port__platform_8h.html#aeeb41e29e7c7a916a4e0fb6cfb9f92e0">gpr_uint8</a></div><div class="ttdeci">uint8_t gpr_uint8</div><div class="ttdef"><b>Definition:</b> port_platform.h:310</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ab8258afc3398c1426974b0b48dbf5a15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPR_SLICE_START_PTR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">slice</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((slice).refcount ? (slice).data.refcounted.bytes \</div>
<div class="line">                    : (slice).data.inlined.bytes)</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a91fe16db371db7c53d6e3adc90a6678c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structgpr__slice.html">gpr_slice</a>  <a class="el" href="structgpr__slice.html">gpr_slice</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af8841873e741f6cf38b2192147ea4f3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structgpr__slice__refcount.html">gpr_slice_refcount</a>  <a class="el" href="structgpr__slice__refcount.html">gpr_slice_refcount</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a1a8906400c956fb8c508326a072b0662"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_empty_slice </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="add3c8736c46bea7517991f178c82ba3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gpr_slice_cmp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a83e8110a7a98132963f01eb9c7f7418e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_from_copied_buffer </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adf4df32e55b1b09d3f11c39447dcc68b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_from_copied_string </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab57463740ccedc00b50721dce66ebd7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_malloc </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aea43587a11bfe2e06fb8532035229bb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_new </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void *)&#160;</td>
          <td class="paramname"><em>destroy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="affd1fef2ffaca67e0b2e7b60923da812"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_new_with_len </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void *, size_t)&#160;</td>
          <td class="paramname"><em>destroy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad28a2bcca348046cbe660a44180e75ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_ref </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a842ea6b4a9ab4d0d3becd6fda03bbc24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_split_head </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>split</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a51315f2a9217a1d42711f48bfec9d39e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_split_tail </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>split</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aef752203db50c932010a74c6845872c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gpr_slice_str_cmp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac9d4e6e264e22c6c6d3748f522da91eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_sub </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="accf08ddad530a5f1cca82c834dc70965"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgpr__slice.html">gpr_slice</a> gpr_slice_sub_no_ref </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a024429b0dd15e43a09e48e35ca8810d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpr_slice_unref </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgpr__slice.html">gpr_slice</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Sep 3 2015 09:44:11 for GRPC Core by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>