-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuffer_8h_source.html
477 lines (475 loc) · 88.7 KB
/
buffer_8h_source.html
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
<!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>libevent: event2/buffer.h Source File</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">libevent
 <span id="projectnumber">2.2.1</span>
</div>
<div id="projectbrief">Event notification library</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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_db160b4728e6067cf5f9cc14ec42c79d.html">event2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">buffer.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="buffer_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> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * derived from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#ifndef EVENT2_BUFFER_H_INCLUDED_</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#define EVENT2_BUFFER_H_INCLUDED_</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#include <event2/visibility.h></span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#include <event2/event-config.h></span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor">#include <stdarg.h></span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor">#ifdef EVENT__HAVE_SYS_TYPES_H</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#include <sys/types.h></span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#ifdef EVENT__HAVE_SYS_UIO_H</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">#include <sys/uio.h></span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor">#include <<a class="code" href="util_8h.html">event2/util.h</a>></span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structevbuffer.html"> 97</a></span> <span class="keyword">struct </span><a class="code" href="structevbuffer.html">evbuffer</a></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> #ifdef EVENT_IN_DOXYGEN_</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {}</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> ;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structevbuffer__ptr.html"> 116</a></span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  ev_ssize_t pos;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">/* Do not alter or rely on the values of fields: they are for internal</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> * use */</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordtype">void</span> *chain;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">size_t</span> pos_in_chain;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  } internal_;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> };</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#ifdef EVENT__HAVE_SYS_UIO_H</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor">#define evbuffer_iovec iovec</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/* Internal use -- defined only if we are using the native struct iovec */</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#define EVBUFFER_IOVEC_IS_NATIVE_</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structevbuffer__iovec.html"> 137</a></span> <span class="keyword">struct </span><a class="code" href="structevbuffer__iovec.html">evbuffer_iovec</a> {</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structevbuffer__iovec.html#a1ce384c93f7554ab94f5dccdab8b4e13"> 139</a></span>  <span class="keywordtype">void</span> *<a class="code" href="structevbuffer__iovec.html#a1ce384c93f7554ab94f5dccdab8b4e13">iov_base</a>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structevbuffer__iovec.html#a0b1981aa931c720e63238022d74c0ac1"> 141</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structevbuffer__iovec.html#a0b1981aa931c720e63238022d74c0ac1">iov_len</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> };</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">struct </span><a class="code" href="structevbuffer.html">evbuffer</a> *<a class="code" href="buffer_8h.html#a7a853e8ebc063d32cd11f1554c77615d">evbuffer_new</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> <a class="code" href="buffer_8h.html#ab255015b91f7b43ba09d8f9da54ed865">evbuffer_free</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#ac5441fc0ce576ad997bf1a869f8c4ba9">evbuffer_set_max_read</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">size_t</span> max);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">size_t</span> <a class="code" href="buffer_8h.html#a94fa0f064f3a5d273a362762eb6b1410">evbuffer_get_max_read</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#af68e729ac81d8a1c02b716653af45ded">evbuffer_enable_locking</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">void</span> *lock);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keywordtype">void</span> <a class="code" href="buffer_8h.html#afe1a938f5728ca0770419119cd90359d">evbuffer_lock</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="keywordtype">void</span> <a class="code" href="buffer_8h.html#a25e8be33a5d5cb2684594b9b3cb6c7c9">evbuffer_unlock</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="buffer_8h.html#a0d9db8b232ebf8d63c660ec429981e91"> 230</a></span> <span class="preprocessor">#define EVBUFFER_FLAG_DRAINS_TO_FD 1</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a8649a5edeb1fcf06490d4d35ac76c13a">evbuffer_set_flags</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, ev_uint64_t flags);</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a256652150a256e8e09d9c1ca5ad24881">evbuffer_clear_flags</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, ev_uint64_t flags);</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="keywordtype">size_t</span> <a class="code" href="buffer_8h.html#a808db707e84e20229b2aafdcaba6c708">evbuffer_get_length</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  </div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keywordtype">size_t</span> <a class="code" href="buffer_8h.html#a3f0b89841da394aebf6dfd620dd787d1">evbuffer_get_contiguous_space</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf);</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a8d4919171c71fc41515c0373e8264527">evbuffer_expand</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="keywordtype">int</span></div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <a class="code" href="buffer_8h.html#a18e9703ca1a062669412684543f7f537">evbuffer_reserve_space</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, ev_ssize_t size,</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keyword">struct</span> <a class="code" href="structevbuffer__iovec.html">evbuffer_iovec</a> *vec, <span class="keywordtype">int</span> n_vec);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#ab9cd3918d883d90acda2d9a9c530bf84">evbuffer_commit_space</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf,</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">struct</span> <a class="code" href="structevbuffer__iovec.html">evbuffer_iovec</a> *vec, <span class="keywordtype">int</span> n_vecs);</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  </div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a8abedc30187fe00d86b7b1cc4d3ce643">evbuffer_add</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keyword">const</span> <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  </div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  </div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#aa53da314581de5e13bb0d92aa05e2301">evbuffer_remove</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  </div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> ev_ssize_t <a class="code" href="buffer_8h.html#afdc539f4c3dbae7c671a4a857833a3d5">evbuffer_copyout</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">void</span> *data_out, <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  </div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> ev_ssize_t <a class="code" href="buffer_8h.html#a3cf708e4e9384d70a5d2fd7158fd94cb">evbuffer_copyout_from</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *pos, <span class="keywordtype">void</span> *data_out, <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  </div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a863342bdbdb4f91d0415ae29ef25494b">evbuffer_remove_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *src, <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *dst,</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordtype">size_t</span> datlen);</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  </div>
<div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178"> 423</a></span> <span class="keyword">enum</span> <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178">evbuffer_eol_style</a> {</div>
<div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ab7c6da1408b1b2ec3a6657e5a71a50c3"> 433</a></span>  <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ab7c6da1408b1b2ec3a6657e5a71a50c3">EVBUFFER_EOL_ANY</a>,</div>
<div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a4aec5353e85fbb57ce3b1ee68f36f641"> 436</a></span>  <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a4aec5353e85fbb57ce3b1ee68f36f641">EVBUFFER_EOL_CRLF</a>,</div>
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a814775b4a9773d34421e7e88ca8c58de"> 438</a></span>  <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a814775b4a9773d34421e7e88ca8c58de">EVBUFFER_EOL_CRLF_STRICT</a>,</div>
<div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ac572ea90e5a96a7ceb878f2a8ef48993"> 440</a></span>  <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ac572ea90e5a96a7ceb878f2a8ef48993">EVBUFFER_EOL_LF</a>,</div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a7b93c5a9f595c62c9d016562356159b7"> 442</a></span>  <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a7b93c5a9f595c62c9d016562356159b7">EVBUFFER_EOL_NUL</a></div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> };</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  </div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="keywordtype">char</span> *<a class="code" href="buffer_8h.html#a8bcc94903283574331994c9364be3d7b">evbuffer_readln</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keywordtype">size_t</span> *n_read_out,</div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="keyword">enum</span> <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178">evbuffer_eol_style</a> eol_style);</div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  </div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#af95837e510c03d5e5fcf9c05db019f14">evbuffer_add_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *outbuf, <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *inbuf);</div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  </div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a60aa7eb8766fcbeadc17f722a095c624">evbuffer_add_buffer_reference</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *outbuf,</div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *inbuf);</div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  </div>
<div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="buffer_8h.html#a66c442353fa5159e2acd808794fa92d6"> 505</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="buffer_8h.html#a66c442353fa5159e2acd808794fa92d6">evbuffer_ref_cleanup_cb</a>)(<span class="keyword">const</span> <span class="keywordtype">void</span> *data,</div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordtype">size_t</span> datalen, <span class="keywordtype">void</span> *extra);</div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  </div>
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a35e99b5370b59b0c0b391ada3a59befe">evbuffer_add_reference</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *outbuf,</div>
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keyword">const</span> <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> datlen,</div>
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <a class="code" href="buffer_8h.html#a66c442353fa5159e2acd808794fa92d6">evbuffer_ref_cleanup_cb</a> cleanupfn, <span class="keywordtype">void</span> *cleanupfn_arg);</div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  </div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  </div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#abf2b931577be86b72418252207ca221b">evbuffer_add_reference_with_offset</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *outbuf, <span class="keyword">const</span> <span class="keywordtype">void</span> *data,</div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <span class="keywordtype">size_t</span> offset, <span class="keywordtype">size_t</span> datlen, <a class="code" href="buffer_8h.html#a66c442353fa5159e2acd808794fa92d6">evbuffer_ref_cleanup_cb</a> cleanupfn,</div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordtype">void</span> *cleanupfn_arg);</div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  </div>
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a601996b1fc1f5c165dc62b89acbd069e">evbuffer_add_file</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *outbuf, <span class="keywordtype">int</span> fd, ev_off_t offset,</div>
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  ev_off_t length);</div>
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  </div>
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <span class="keyword">struct </span>evbuffer_file_segment;</div>
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  </div>
<div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="buffer_8h.html#a647759a5dec0745de7b17aefc928e3d6"> 592</a></span> <span class="preprocessor">#define EVBUF_FS_CLOSE_ON_FREE 0x01</span></div>
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  </div>
<div class="line"><a name="l00597"></a><span class="lineno"><a class="line" href="buffer_8h.html#a0749ba245d15e70bc99cee90a3d02ac9"> 597</a></span> <span class="preprocessor">#define EVBUF_FS_DISABLE_MMAP 0x02</span></div>
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  </div>
<div class="line"><a name="l00607"></a><span class="lineno"><a class="line" href="buffer_8h.html#a553dd6c9a5cbbc112ffe32401cacd705"> 607</a></span> <span class="preprocessor">#define EVBUF_FS_DISABLE_SENDFILE 0x04</span></div>
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  </div>
<div class="line"><a name="l00614"></a><span class="lineno"><a class="line" href="buffer_8h.html#ad9d19b50a501babad4cbe7f0f9a42691"> 614</a></span> <span class="preprocessor">#define EVBUF_FS_DISABLE_LOCKING 0x08</span></div>
<div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  </div>
<div class="line"><a name="l00620"></a><span class="lineno"><a class="line" href="buffer_8h.html#aa0e56a17ff87cf097011902b80dd53bf"> 620</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="buffer_8h.html#aa0e56a17ff87cf097011902b80dd53bf">evbuffer_file_segment_cleanup_cb</a>)(</div>
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="keyword">struct </span>evbuffer_file_segment const* seg, <span class="keywordtype">int</span> flags, <span class="keywordtype">void</span>* arg);</div>
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  </div>
<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="keyword">struct </span>evbuffer_file_segment *<a class="code" href="buffer_8h.html#aa52264c1529ee486400bbad0bf9f4271">evbuffer_file_segment_new</a>(</div>
<div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordtype">int</span> fd, ev_off_t offset, ev_off_t length, <span class="keywordtype">unsigned</span> flags);</div>
<div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  </div>
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> <span class="keywordtype">void</span> <a class="code" href="buffer_8h.html#a0b82a4d7dd6853882ed5a87559edbad1">evbuffer_file_segment_free</a>(<span class="keyword">struct</span> evbuffer_file_segment *seg);</div>
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  </div>
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="keywordtype">void</span> <a class="code" href="buffer_8h.html#ab0767fa82fecc6255129928b02ecc1d6">evbuffer_file_segment_add_cleanup_cb</a>(<span class="keyword">struct</span> evbuffer_file_segment *seg,</div>
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <a class="code" href="buffer_8h.html#aa0e56a17ff87cf097011902b80dd53bf">evbuffer_file_segment_cleanup_cb</a> cb, <span class="keywordtype">void</span>* arg);</div>
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  </div>
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a300f9e6d1db3d6f834284c47fc77e1bc">evbuffer_add_file_segment</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf,</div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="keyword">struct</span> evbuffer_file_segment *seg, ev_off_t offset, ev_off_t length);</div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  </div>
<div class="line"><a name="l00708"></a><span class="lineno"> 708</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00709"></a><span class="lineno"> 709</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#abd34b7bd9e698e15f868bf05fa6abc59">evbuffer_add_printf</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...)</div>
<div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  __attribute__((format(printf, 2, 3)))</div>
<div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00713"></a><span class="lineno"> 713</span> ;</div>
<div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  </div>
<div class="line"><a name="l00723"></a><span class="lineno"> 723</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#abb5d7931c7be6b2bde597cbb9b6dc72d">evbuffer_add_vprintf</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list ap)</div>
<div class="line"><a name="l00725"></a><span class="lineno"> 725</span> <span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  __attribute__((format(printf, 2, 0)))</div>
<div class="line"><a name="l00727"></a><span class="lineno"> 727</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00728"></a><span class="lineno"> 728</span> ;</div>
<div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  </div>
<div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  </div>
<div class="line"><a name="l00738"></a><span class="lineno"> 738</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00739"></a><span class="lineno"> 739</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a08599d8165ea785b9b6a4ddf44ec24f7">evbuffer_drain</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">size_t</span> len);</div>
<div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  </div>
<div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  </div>
<div class="line"><a name="l00752"></a><span class="lineno"> 752</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00753"></a><span class="lineno"> 753</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a7d9605737ec9ba876f0ba49e937b9bd7">evbuffer_write</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd);</div>
<div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  </div>
<div class="line"><a name="l00767"></a><span class="lineno"> 767</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00768"></a><span class="lineno"> 768</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a69f9cbac8f6dbd2d8f3c2706fbbdc7cd">evbuffer_write_atmost</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd,</div>
<div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  ev_ssize_t howmuch);</div>
<div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  </div>
<div class="line"><a name="l00781"></a><span class="lineno"> 781</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00782"></a><span class="lineno"> 782</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a2664ab1d68d21acf3185a01c85cf29af">evbuffer_read</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd, <span class="keywordtype">int</span> howmuch);</div>
<div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  </div>
<div class="line"><a name="l00795"></a><span class="lineno"> 795</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> <a class="code" href="buffer_8h.html#a06e9211319a369ffb072d4f4a83b48e7">evbuffer_search</a>(struct <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">const</span> <span class="keywordtype">char</span> *what, <span class="keywordtype">size_t</span> len, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *start);</div>
<div class="line"><a name="l00797"></a><span class="lineno"> 797</span>  </div>
<div class="line"><a name="l00812"></a><span class="lineno"> 812</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00813"></a><span class="lineno"> 813</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> <a class="code" href="buffer_8h.html#a3b1e093af8bc1a86963729ec1290de8f">evbuffer_search_range</a>(struct <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">const</span> <span class="keywordtype">char</span> *what, <span class="keywordtype">size_t</span> len, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *start, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *end);</div>
<div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  </div>
<div class="line"><a name="l00819"></a><span class="lineno"><a class="line" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014"> 819</a></span> <span class="keyword">enum</span> <a class="code" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014">evbuffer_ptr_how</a> {</div>
<div class="line"><a name="l00822"></a><span class="lineno"><a class="line" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a78a0ff3721ff5f1647f743dcfb2f13ee"> 822</a></span>  <a class="code" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a78a0ff3721ff5f1647f743dcfb2f13ee">EVBUFFER_PTR_SET</a>,</div>
<div class="line"><a name="l00824"></a><span class="lineno"><a class="line" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a0bce00d78b5fbc55c478ff362269f428"> 824</a></span>  <a class="code" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a0bce00d78b5fbc55c478ff362269f428">EVBUFFER_PTR_ADD</a></div>
<div class="line"><a name="l00825"></a><span class="lineno"> 825</span> };</div>
<div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  </div>
<div class="line"><a name="l00848"></a><span class="lineno"> 848</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00849"></a><span class="lineno"> 849</span> <span class="keywordtype">int</span></div>
<div class="line"><a name="l00850"></a><span class="lineno"> 850</span> <a class="code" href="buffer_8h.html#a22137a538067a8450d52af0e6601ca49">evbuffer_ptr_set</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">struct</span> <a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *ptr,</div>
<div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  <span class="keywordtype">size_t</span> position, <span class="keyword">enum</span> <a class="code" href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014">evbuffer_ptr_how</a> how);</div>
<div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  </div>
<div class="line"><a name="l00867"></a><span class="lineno"> 867</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00868"></a><span class="lineno"> 868</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> <a class="code" href="buffer_8h.html#a28e2fa6852a5a49285933b1c95c7465f">evbuffer_search_eol</a>(struct <a class="code" href="structevbuffer.html">evbuffer</a> *buffer,</div>
<div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="keyword">struct </span><a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *start, <span class="keywordtype">size_t</span> *eol_len_out,</div>
<div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keyword">enum</span> <a class="code" href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178">evbuffer_eol_style</a> eol_style);</div>
<div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  </div>
<div class="line"><a name="l00900"></a><span class="lineno"> 900</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00901"></a><span class="lineno"> 901</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#aad7c208f2afca3e7e46a1a95fb79eec1">evbuffer_peek</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, ev_ssize_t len,</div>
<div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  <span class="keyword">struct</span> <a class="code" href="structevbuffer__ptr.html">evbuffer_ptr</a> *start_at,</div>
<div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  <span class="keyword">struct</span> <a class="code" href="structevbuffer__iovec.html">evbuffer_iovec</a> *vec_out, <span class="keywordtype">int</span> n_vec);</div>
<div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  </div>
<div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  </div>
<div class="line"><a name="l00910"></a><span class="lineno"><a class="line" href="structevbuffer__cb__info.html"> 910</a></span> <span class="keyword">struct </span><a class="code" href="structevbuffer__cb__info.html">evbuffer_cb_info</a> {</div>
<div class="line"><a name="l00913"></a><span class="lineno"><a class="line" href="structevbuffer__cb__info.html#a18e973448576100923328e4de05ddef5"> 913</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structevbuffer__cb__info.html#a18e973448576100923328e4de05ddef5">orig_size</a>;</div>
<div class="line"><a name="l00915"></a><span class="lineno"><a class="line" href="structevbuffer__cb__info.html#a8191bbc06e291543359428daace6bae6"> 915</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structevbuffer__cb__info.html#a8191bbc06e291543359428daace6bae6">n_added</a>;</div>
<div class="line"><a name="l00917"></a><span class="lineno"><a class="line" href="structevbuffer__cb__info.html#a7d1a674e020d2eee72538b0221dc32a4"> 917</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structevbuffer__cb__info.html#a7d1a674e020d2eee72538b0221dc32a4">n_deleted</a>;</div>
<div class="line"><a name="l00918"></a><span class="lineno"> 918</span> };</div>
<div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  </div>
<div class="line"><a name="l00939"></a><span class="lineno"><a class="line" href="buffer_8h.html#a8f16422514b698553f34c0eba180f3fa"> 939</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="buffer_8h.html#a8f16422514b698553f34c0eba180f3fa">evbuffer_cb_func</a>)(<span class="keyword">struct </span><a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevbuffer__cb__info.html">evbuffer_cb_info</a> *info, <span class="keywordtype">void</span> *arg);</div>
<div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  </div>
<div class="line"><a name="l00941"></a><span class="lineno"> 941</span> <span class="keyword">struct </span>evbuffer_cb_entry;</div>
<div class="line"><a name="l00953"></a><span class="lineno"> 953</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00954"></a><span class="lineno"> 954</span> <span class="keyword">struct </span>evbuffer_cb_entry *<a class="code" href="buffer_8h.html#a3885fb5ca54eff0778916183f58a9c25">evbuffer_add_cb</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <a class="code" href="buffer_8h.html#a8f16422514b698553f34c0eba180f3fa">evbuffer_cb_func</a> cb, <span class="keywordtype">void</span> *cbarg);</div>
<div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  </div>
<div class="line"><a name="l00964"></a><span class="lineno"> 964</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00965"></a><span class="lineno"> 965</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#ade150950a995af06cd3c6321f71eb3c1">evbuffer_remove_cb_entry</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer,</div>
<div class="line"><a name="l00966"></a><span class="lineno"> 966</span>  <span class="keyword">struct</span> evbuffer_cb_entry *ent);</div>
<div class="line"><a name="l00967"></a><span class="lineno"> 967</span>  </div>
<div class="line"><a name="l00974"></a><span class="lineno"> 974</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00975"></a><span class="lineno"> 975</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#abc4912118c60071766c6a9d343186137">evbuffer_remove_cb</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <a class="code" href="buffer_8h.html#a8f16422514b698553f34c0eba180f3fa">evbuffer_cb_func</a> cb, <span class="keywordtype">void</span> *cbarg);</div>
<div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  </div>
<div class="line"><a name="l00982"></a><span class="lineno"><a class="line" href="buffer_8h.html#aeb635643a72f8e57d50d7dee37308148"> 982</a></span> <span class="preprocessor">#define EVBUFFER_CB_ENABLED 1</span></div>
<div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  </div>
<div class="line"><a name="l00991"></a><span class="lineno"> 991</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00992"></a><span class="lineno"> 992</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#af5fa49788238edd197d3f242878576f3">evbuffer_cb_set_flags</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer,</div>
<div class="line"><a name="l00993"></a><span class="lineno"> 993</span>  <span class="keyword">struct</span> evbuffer_cb_entry *cb, ev_uint32_t flags);</div>
<div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  </div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#ae384dcadf478c364d005f57be899b21b">evbuffer_cb_clear_flags</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer,</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  <span class="keyword">struct</span> evbuffer_cb_entry *cb, ev_uint32_t flags);</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  </div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  </div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="keywordtype">void</span> evbuffer_cb_suspend(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">struct</span> evbuffer_cb_entry *cb);</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="keywordtype">void</span> evbuffer_cb_unsuspend(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">struct</span> evbuffer_cb_entry *cb);</div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  </div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="buffer_8h.html#acd73ca99c3a793ea26c43307b9723bd6">evbuffer_pullup</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, ev_ssize_t size);</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>  </div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a1112b433d2554b8b80b814feb37fdc95">evbuffer_prepend</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keyword">const</span> <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>  </div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a1d26aa5a48b549d702bc5175b0444d33">evbuffer_prepend_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *dst, <span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a>* src);</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>  </div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a2b32b99d60603aac9bbadb9e463a6bc1">evbuffer_freeze</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">int</span> at_front);</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#af36bd50996e2db4445282e6a194328a2">evbuffer_unfreeze</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buf, <span class="keywordtype">int</span> at_front);</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>  </div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a>;</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> <span class="keywordtype">int</span> <a class="code" href="buffer_8h.html#a97293fcb83dd9d073af4cf370b9d094d">evbuffer_defer_callbacks</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> *buffer, <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>  </div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span> <span class="keywordtype">size_t</span> <a class="code" href="buffer_8h.html#acd12f9e37353ed2b72d6a1cc2064f998">evbuffer_add_iovec</a>(<span class="keyword">struct</span> <a class="code" href="structevbuffer.html">evbuffer</a> * buffer, <span class="keyword">struct</span> <a class="code" href="structevbuffer__iovec.html">evbuffer_iovec</a> * vec, <span class="keywordtype">int</span> n_vec);</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>  </div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span> }</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>  </div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="preprocessor">#endif </span><span class="comment">/* EVENT2_BUFFER_H_INCLUDED_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="abuffer_8h_html_af68e729ac81d8a1c02b716653af45ded"><div class="ttname"><a href="buffer_8h.html#af68e729ac81d8a1c02b716653af45ded">evbuffer_enable_locking</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_enable_locking(struct evbuffer *buf, void *lock)</div><div class="ttdoc">Enable locking on an evbuffer so that it can safely be used by multiple threads at the same time.</div></div>
<div class="ttc" id="abuffer_8h_html_a808db707e84e20229b2aafdcaba6c708"><div class="ttname"><a href="buffer_8h.html#a808db707e84e20229b2aafdcaba6c708">evbuffer_get_length</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL size_t evbuffer_get_length(const struct evbuffer *buf)</div><div class="ttdoc">Returns the total number of bytes stored in the evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a13a9ee759900ce2964d16acd5f309014a0bce00d78b5fbc55c478ff362269f428"><div class="ttname"><a href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a0bce00d78b5fbc55c478ff362269f428">EVBUFFER_PTR_ADD</a></div><div class="ttdeci">@ EVBUFFER_PTR_ADD</div><div class="ttdoc">Advances the pointer by adding to the current position.</div><div class="ttdef"><b>Definition:</b> buffer.h:824</div></div>
<div class="ttc" id="abuffer_8h_html_aa53da314581de5e13bb0d92aa05e2301"><div class="ttname"><a href="buffer_8h.html#aa53da314581de5e13bb0d92aa05e2301">evbuffer_remove</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_remove(struct evbuffer *buf, void *data, size_t datlen)</div><div class="ttdoc">Read data from an evbuffer and drain the bytes read.</div></div>
<div class="ttc" id="abuffer_8h_html_a601996b1fc1f5c165dc62b89acbd069e"><div class="ttname"><a href="buffer_8h.html#a601996b1fc1f5c165dc62b89acbd069e">evbuffer_add_file</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_file(struct evbuffer *outbuf, int fd, ev_off_t offset, ev_off_t length)</div><div class="ttdoc">Copy data from a file into the evbuffer for writing to a socket.</div></div>
<div class="ttc" id="abuffer_8h_html_abf2b931577be86b72418252207ca221b"><div class="ttname"><a href="buffer_8h.html#abf2b931577be86b72418252207ca221b">evbuffer_add_reference_with_offset</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_reference_with_offset(struct evbuffer *outbuf, const void *data, size_t offset, size_t datlen, evbuffer_ref_cleanup_cb cleanupfn, void *cleanupfn_arg)</div><div class="ttdoc">Reference memory into an evbuffer without copying.</div></div>
<div class="ttc" id="abuffer_8h_html_a3f0b89841da394aebf6dfd620dd787d1"><div class="ttname"><a href="buffer_8h.html#a3f0b89841da394aebf6dfd620dd787d1">evbuffer_get_contiguous_space</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL size_t evbuffer_get_contiguous_space(const struct evbuffer *buf)</div><div class="ttdoc">Returns the number of contiguous available bytes in the first buffer chain.</div></div>
<div class="ttc" id="astructevbuffer__cb__info_html"><div class="ttname"><a href="structevbuffer__cb__info.html">evbuffer_cb_info</a></div><div class="ttdoc">Structure passed to an evbuffer_cb_func evbuffer callback.</div><div class="ttdef"><b>Definition:</b> buffer.h:910</div></div>
<div class="ttc" id="abuffer_8h_html_a8abedc30187fe00d86b7b1cc4d3ce643"><div class="ttname"><a href="buffer_8h.html#a8abedc30187fe00d86b7b1cc4d3ce643">evbuffer_add</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add(struct evbuffer *buf, const void *data, size_t datlen)</div><div class="ttdoc">Append data to the end of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178a4aec5353e85fbb57ce3b1ee68f36f641"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a4aec5353e85fbb57ce3b1ee68f36f641">EVBUFFER_EOL_CRLF</a></div><div class="ttdeci">@ EVBUFFER_EOL_CRLF</div><div class="ttdoc">An EOL is an LF, optionally preceded by a CR.</div><div class="ttdef"><b>Definition:</b> buffer.h:436</div></div>
<div class="ttc" id="astructevbuffer__iovec_html_a1ce384c93f7554ab94f5dccdab8b4e13"><div class="ttname"><a href="structevbuffer__iovec.html#a1ce384c93f7554ab94f5dccdab8b4e13">evbuffer_iovec::iov_base</a></div><div class="ttdeci">void * iov_base</div><div class="ttdoc">The start of the extent of memory.</div><div class="ttdef"><b>Definition:</b> buffer.h:139</div></div>
<div class="ttc" id="abuffer_8h_html_acd12f9e37353ed2b72d6a1cc2064f998"><div class="ttname"><a href="buffer_8h.html#acd12f9e37353ed2b72d6a1cc2064f998">evbuffer_add_iovec</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL size_t evbuffer_add_iovec(struct evbuffer *buffer, struct evbuffer_iovec *vec, int n_vec)</div><div class="ttdoc">Append data from 1 or more iovec's to an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_af36bd50996e2db4445282e6a194328a2"><div class="ttname"><a href="buffer_8h.html#af36bd50996e2db4445282e6a194328a2">evbuffer_unfreeze</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_unfreeze(struct evbuffer *buf, int at_front)</div><div class="ttdoc">Re-enable calls that modify an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a8649a5edeb1fcf06490d4d35ac76c13a"><div class="ttname"><a href="buffer_8h.html#a8649a5edeb1fcf06490d4d35ac76c13a">evbuffer_set_flags</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_set_flags(struct evbuffer *buf, ev_uint64_t flags)</div><div class="ttdoc">Change the flags that are set for an evbuffer by adding more.</div></div>
<div class="ttc" id="abuffer_8h_html_aad7c208f2afca3e7e46a1a95fb79eec1"><div class="ttname"><a href="buffer_8h.html#aad7c208f2afca3e7e46a1a95fb79eec1">evbuffer_peek</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_peek(struct evbuffer *buffer, ev_ssize_t len, struct evbuffer_ptr *start_at, struct evbuffer_iovec *vec_out, int n_vec)</div><div class="ttdoc">Function to peek at data inside an evbuffer without removing it or copying it out.</div></div>
<div class="ttc" id="abuffer_8h_html_ac5441fc0ce576ad997bf1a869f8c4ba9"><div class="ttname"><a href="buffer_8h.html#ac5441fc0ce576ad997bf1a869f8c4ba9">evbuffer_set_max_read</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_set_max_read(struct evbuffer *buf, size_t max)</div><div class="ttdoc">Set maximum read buffer size.</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178">evbuffer_eol_style</a></div><div class="ttdeci">evbuffer_eol_style</div><div class="ttdoc">Used to tell evbuffer_readln what kind of line-ending to look for.</div><div class="ttdef"><b>Definition:</b> buffer.h:423</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178a7b93c5a9f595c62c9d016562356159b7"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a7b93c5a9f595c62c9d016562356159b7">EVBUFFER_EOL_NUL</a></div><div class="ttdeci">@ EVBUFFER_EOL_NUL</div><div class="ttdoc">An EOL is a NUL character (that is, a single byte with value 0)</div><div class="ttdef"><b>Definition:</b> buffer.h:442</div></div>
<div class="ttc" id="astructevent__base_html"><div class="ttname"><a href="structevent__base.html">event_base</a></div><div class="ttdoc">Structure to hold information and state for a Libevent dispatch loop.</div><div class="ttdef"><b>Definition:</b> event.h:219</div></div>
<div class="ttc" id="abuffer_8h_html_afe1a938f5728ca0770419119cd90359d"><div class="ttname"><a href="buffer_8h.html#afe1a938f5728ca0770419119cd90359d">evbuffer_lock</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void evbuffer_lock(struct evbuffer *buf)</div><div class="ttdoc">Acquire the lock on an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_abb5d7931c7be6b2bde597cbb9b6dc72d"><div class="ttname"><a href="buffer_8h.html#abb5d7931c7be6b2bde597cbb9b6dc72d">evbuffer_add_vprintf</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_vprintf(struct evbuffer *buf, const char *fmt, va_list ap)</div><div class="ttdoc">Append a va_list formatted string to the end of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_acd73ca99c3a793ea26c43307b9723bd6"><div class="ttname"><a href="buffer_8h.html#acd73ca99c3a793ea26c43307b9723bd6">evbuffer_pullup</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL unsigned char * evbuffer_pullup(struct evbuffer *buf, ev_ssize_t size)</div><div class="ttdoc">Makes the data at the beginning of an evbuffer contiguous.</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178a814775b4a9773d34421e7e88ca8c58de"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178a814775b4a9773d34421e7e88ca8c58de">EVBUFFER_EOL_CRLF_STRICT</a></div><div class="ttdeci">@ EVBUFFER_EOL_CRLF_STRICT</div><div class="ttdoc">An EOL is a CR followed by an LF.</div><div class="ttdef"><b>Definition:</b> buffer.h:438</div></div>
<div class="ttc" id="abuffer_8h_html_a06e9211319a369ffb072d4f4a83b48e7"><div class="ttname"><a href="buffer_8h.html#a06e9211319a369ffb072d4f4a83b48e7">evbuffer_search</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer_ptr evbuffer_search(struct evbuffer *buffer, const char *what, size_t len, const struct evbuffer_ptr *start)</div><div class="ttdoc">Search for a string within an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a97293fcb83dd9d073af4cf370b9d094d"><div class="ttname"><a href="buffer_8h.html#a97293fcb83dd9d073af4cf370b9d094d">evbuffer_defer_callbacks</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_defer_callbacks(struct evbuffer *buffer, struct event_base *base)</div><div class="ttdoc">Force all the callbacks on an evbuffer to be run, not immediately after the evbuffer is altered,...</div></div>
<div class="ttc" id="abuffer_8h_html_a1112b433d2554b8b80b814feb37fdc95"><div class="ttname"><a href="buffer_8h.html#a1112b433d2554b8b80b814feb37fdc95">evbuffer_prepend</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_prepend(struct evbuffer *buf, const void *data, size_t size)</div><div class="ttdoc">Prepends data to the beginning of the evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a2664ab1d68d21acf3185a01c85cf29af"><div class="ttname"><a href="buffer_8h.html#a2664ab1d68d21acf3185a01c85cf29af">evbuffer_read</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_read(struct evbuffer *buffer, evutil_socket_t fd, int howmuch)</div><div class="ttdoc">Read from a file descriptor and store the result in an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a69f9cbac8f6dbd2d8f3c2706fbbdc7cd"><div class="ttname"><a href="buffer_8h.html#a69f9cbac8f6dbd2d8f3c2706fbbdc7cd">evbuffer_write_atmost</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_write_atmost(struct evbuffer *buffer, evutil_socket_t fd, ev_ssize_t howmuch)</div><div class="ttdoc">Write some of the contents of an evbuffer to a file descriptor.</div></div>
<div class="ttc" id="abuffer_8h_html_a66c442353fa5159e2acd808794fa92d6"><div class="ttname"><a href="buffer_8h.html#a66c442353fa5159e2acd808794fa92d6">evbuffer_ref_cleanup_cb</a></div><div class="ttdeci">void(* evbuffer_ref_cleanup_cb)(const void *data, size_t datalen, void *extra)</div><div class="ttdoc">A cleanup function for a piece of memory added to an evbuffer by reference.</div><div class="ttdef"><b>Definition:</b> buffer.h:505</div></div>
<div class="ttc" id="abuffer_8h_html_a3cf708e4e9384d70a5d2fd7158fd94cb"><div class="ttname"><a href="buffer_8h.html#a3cf708e4e9384d70a5d2fd7158fd94cb">evbuffer_copyout_from</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL ev_ssize_t evbuffer_copyout_from(struct evbuffer *buf, const struct evbuffer_ptr *pos, void *data_out, size_t datlen)</div><div class="ttdoc">Read data from the middle of an evbuffer, and leave the buffer unchanged.</div></div>
<div class="ttc" id="astructevbuffer__iovec_html"><div class="ttname"><a href="structevbuffer__iovec.html">evbuffer_iovec</a></div><div class="ttdoc">Describes a single extent of memory inside an evbuffer.</div><div class="ttdef"><b>Definition:</b> buffer.h:137</div></div>
<div class="ttc" id="abuffer_8h_html_a08599d8165ea785b9b6a4ddf44ec24f7"><div class="ttname"><a href="buffer_8h.html#a08599d8165ea785b9b6a4ddf44ec24f7">evbuffer_drain</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_drain(struct evbuffer *buf, size_t len)</div><div class="ttdoc">Remove a specified number of bytes data from the beginning of an evbuffer.</div></div>
<div class="ttc" id="astructevbuffer__ptr_html"><div class="ttname"><a href="structevbuffer__ptr.html">evbuffer_ptr</a></div><div class="ttdoc">Pointer to a position within an evbuffer.</div><div class="ttdef"><b>Definition:</b> buffer.h:116</div></div>
<div class="ttc" id="abuffer_8h_html_a1d26aa5a48b549d702bc5175b0444d33"><div class="ttname"><a href="buffer_8h.html#a1d26aa5a48b549d702bc5175b0444d33">evbuffer_prepend_buffer</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_prepend_buffer(struct evbuffer *dst, struct evbuffer *src)</div><div class="ttdoc">Prepends all data from the src evbuffer to the beginning of the dst evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_ade150950a995af06cd3c6321f71eb3c1"><div class="ttname"><a href="buffer_8h.html#ade150950a995af06cd3c6321f71eb3c1">evbuffer_remove_cb_entry</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_remove_cb_entry(struct evbuffer *buffer, struct evbuffer_cb_entry *ent)</div><div class="ttdoc">Remove a callback from an evbuffer, given a handle returned from evbuffer_add_cb.</div></div>
<div class="ttc" id="abuffer_8h_html_a22137a538067a8450d52af0e6601ca49"><div class="ttname"><a href="buffer_8h.html#a22137a538067a8450d52af0e6601ca49">evbuffer_ptr_set</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_ptr_set(struct evbuffer *buffer, struct evbuffer_ptr *ptr, size_t position, enum evbuffer_ptr_how how)</div><div class="ttdoc">Sets the search pointer in the buffer to position.</div></div>
<div class="ttc" id="astructevbuffer_html"><div class="ttname"><a href="structevbuffer.html">evbuffer</a></div><div class="ttdoc">An evbuffer is an opaque data type for efficiently buffering data to be sent or received on the netwo...</div><div class="ttdef"><b>Definition:</b> buffer.h:97</div></div>
<div class="ttc" id="abuffer_8h_html_a8f16422514b698553f34c0eba180f3fa"><div class="ttname"><a href="buffer_8h.html#a8f16422514b698553f34c0eba180f3fa">evbuffer_cb_func</a></div><div class="ttdeci">void(* evbuffer_cb_func)(struct evbuffer *buffer, const struct evbuffer_cb_info *info, void *arg)</div><div class="ttdoc">Type definition for a callback that is invoked whenever data is added or removed from an evbuffer.</div><div class="ttdef"><b>Definition:</b> buffer.h:939</div></div>
<div class="ttc" id="abuffer_8h_html_a2b32b99d60603aac9bbadb9e463a6bc1"><div class="ttname"><a href="buffer_8h.html#a2b32b99d60603aac9bbadb9e463a6bc1">evbuffer_freeze</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_freeze(struct evbuffer *buf, int at_front)</div><div class="ttdoc">Prevent calls that modify an evbuffer from succeeding.</div></div>
<div class="ttc" id="abuffer_8h_html_a28e2fa6852a5a49285933b1c95c7465f"><div class="ttname"><a href="buffer_8h.html#a28e2fa6852a5a49285933b1c95c7465f">evbuffer_search_eol</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer_ptr evbuffer_search_eol(struct evbuffer *buffer, struct evbuffer_ptr *start, size_t *eol_len_out, enum evbuffer_eol_style eol_style)</div><div class="ttdoc">Search for an end-of-line string within an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a3885fb5ca54eff0778916183f58a9c25"><div class="ttname"><a href="buffer_8h.html#a3885fb5ca54eff0778916183f58a9c25">evbuffer_add_cb</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer_cb_entry * evbuffer_add_cb(struct evbuffer *buffer, evbuffer_cb_func cb, void *cbarg)</div><div class="ttdoc">Add a new callback to an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_aa52264c1529ee486400bbad0bf9f4271"><div class="ttname"><a href="buffer_8h.html#aa52264c1529ee486400bbad0bf9f4271">evbuffer_file_segment_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer_file_segment * evbuffer_file_segment_new(int fd, ev_off_t offset, ev_off_t length, unsigned flags)</div><div class="ttdoc">Create and return a new evbuffer_file_segment for reading data from a file and sending it out via an ...</div></div>
<div class="ttc" id="abuffer_8h_html_a8bcc94903283574331994c9364be3d7b"><div class="ttname"><a href="buffer_8h.html#a8bcc94903283574331994c9364be3d7b">evbuffer_readln</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL char * evbuffer_readln(struct evbuffer *buffer, size_t *n_read_out, enum evbuffer_eol_style eol_style)</div><div class="ttdoc">Read a single line from an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a25e8be33a5d5cb2684594b9b3cb6c7c9"><div class="ttname"><a href="buffer_8h.html#a25e8be33a5d5cb2684594b9b3cb6c7c9">evbuffer_unlock</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void evbuffer_unlock(struct evbuffer *buf)</div><div class="ttdoc">Release the lock on an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_af5fa49788238edd197d3f242878576f3"><div class="ttname"><a href="buffer_8h.html#af5fa49788238edd197d3f242878576f3">evbuffer_cb_set_flags</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_cb_set_flags(struct evbuffer *buffer, struct evbuffer_cb_entry *cb, ev_uint32_t flags)</div><div class="ttdoc">Change the flags that are set for a callback on a buffer by adding more.</div></div>
<div class="ttc" id="astructevbuffer__cb__info_html_a7d1a674e020d2eee72538b0221dc32a4"><div class="ttname"><a href="structevbuffer__cb__info.html#a7d1a674e020d2eee72538b0221dc32a4">evbuffer_cb_info::n_deleted</a></div><div class="ttdeci">size_t n_deleted</div><div class="ttdoc">The number of bytes removed since callbacks were last invoked.</div><div class="ttdef"><b>Definition:</b> buffer.h:917</div></div>
<div class="ttc" id="abuffer_8h_html_a256652150a256e8e09d9c1ca5ad24881"><div class="ttname"><a href="buffer_8h.html#a256652150a256e8e09d9c1ca5ad24881">evbuffer_clear_flags</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_clear_flags(struct evbuffer *buf, ev_uint64_t flags)</div><div class="ttdoc">Change the flags that are set for an evbuffer by removing some.</div></div>
<div class="ttc" id="abuffer_8h_html_a13a9ee759900ce2964d16acd5f309014"><div class="ttname"><a href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014">evbuffer_ptr_how</a></div><div class="ttdeci">evbuffer_ptr_how</div><div class="ttdoc">Defines how to adjust an evbuffer_ptr by evbuffer_ptr_set()</div><div class="ttdef"><b>Definition:</b> buffer.h:819</div></div>
<div class="ttc" id="astructevbuffer__cb__info_html_a8191bbc06e291543359428daace6bae6"><div class="ttname"><a href="structevbuffer__cb__info.html#a8191bbc06e291543359428daace6bae6">evbuffer_cb_info::n_added</a></div><div class="ttdeci">size_t n_added</div><div class="ttdoc">The number of bytes added since callbacks were last invoked.</div><div class="ttdef"><b>Definition:</b> buffer.h:915</div></div>
<div class="ttc" id="abuffer_8h_html_a35e99b5370b59b0c0b391ada3a59befe"><div class="ttname"><a href="buffer_8h.html#a35e99b5370b59b0c0b391ada3a59befe">evbuffer_add_reference</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_reference(struct evbuffer *outbuf, const void *data, size_t datlen, evbuffer_ref_cleanup_cb cleanupfn, void *cleanupfn_arg)</div><div class="ttdoc">Reference memory into an evbuffer without copying.</div></div>
<div class="ttc" id="abuffer_8h_html_af95837e510c03d5e5fcf9c05db019f14"><div class="ttname"><a href="buffer_8h.html#af95837e510c03d5e5fcf9c05db019f14">evbuffer_add_buffer</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf)</div><div class="ttdoc">Move all data from one evbuffer into another evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a300f9e6d1db3d6f834284c47fc77e1bc"><div class="ttname"><a href="buffer_8h.html#a300f9e6d1db3d6f834284c47fc77e1bc">evbuffer_add_file_segment</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_file_segment(struct evbuffer *buf, struct evbuffer_file_segment *seg, ev_off_t offset, ev_off_t length)</div><div class="ttdoc">Insert some or all of an evbuffer_file_segment at the end of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_abd34b7bd9e698e15f868bf05fa6abc59"><div class="ttname"><a href="buffer_8h.html#abd34b7bd9e698e15f868bf05fa6abc59">evbuffer_add_printf</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_printf(struct evbuffer *buf, const char *fmt,...)</div><div class="ttdoc">Append a formatted string to the end of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178ac572ea90e5a96a7ceb878f2a8ef48993"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ac572ea90e5a96a7ceb878f2a8ef48993">EVBUFFER_EOL_LF</a></div><div class="ttdeci">@ EVBUFFER_EOL_LF</div><div class="ttdoc">An EOL is a LF.</div><div class="ttdef"><b>Definition:</b> buffer.h:440</div></div>
<div class="ttc" id="abuffer_8h_html_ab9cd3918d883d90acda2d9a9c530bf84"><div class="ttname"><a href="buffer_8h.html#ab9cd3918d883d90acda2d9a9c530bf84">evbuffer_commit_space</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_commit_space(struct evbuffer *buf, struct evbuffer_iovec *vec, int n_vecs)</div><div class="ttdoc">Commits previously reserved space.</div></div>
<div class="ttc" id="abuffer_8h_html_a7d9605737ec9ba876f0ba49e937b9bd7"><div class="ttname"><a href="buffer_8h.html#a7d9605737ec9ba876f0ba49e937b9bd7">evbuffer_write</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_write(struct evbuffer *buffer, evutil_socket_t fd)</div><div class="ttdoc">Write the contents of an evbuffer to a file descriptor.</div></div>
<div class="ttc" id="abuffer_8h_html_a863342bdbdb4f91d0415ae29ef25494b"><div class="ttname"><a href="buffer_8h.html#a863342bdbdb4f91d0415ae29ef25494b">evbuffer_remove_buffer</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_remove_buffer(struct evbuffer *src, struct evbuffer *dst, size_t datlen)</div><div class="ttdoc">Read data from an evbuffer into another evbuffer, draining the bytes from the source buffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a3b1e093af8bc1a86963729ec1290de8f"><div class="ttname"><a href="buffer_8h.html#a3b1e093af8bc1a86963729ec1290de8f">evbuffer_search_range</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer_ptr evbuffer_search_range(struct evbuffer *buffer, const char *what, size_t len, const struct evbuffer_ptr *start, const struct evbuffer_ptr *end)</div><div class="ttdoc">Search for a string within part of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_ab255015b91f7b43ba09d8f9da54ed865"><div class="ttname"><a href="buffer_8h.html#ab255015b91f7b43ba09d8f9da54ed865">evbuffer_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void evbuffer_free(struct evbuffer *buf)</div><div class="ttdoc">Deallocate storage for an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_aa0e56a17ff87cf097011902b80dd53bf"><div class="ttname"><a href="buffer_8h.html#aa0e56a17ff87cf097011902b80dd53bf">evbuffer_file_segment_cleanup_cb</a></div><div class="ttdeci">void(* evbuffer_file_segment_cleanup_cb)(struct evbuffer_file_segment const *seg, int flags, void *arg)</div><div class="ttdoc">A cleanup function for a evbuffer_file_segment added to an evbuffer for reference.</div><div class="ttdef"><b>Definition:</b> buffer.h:620</div></div>
<div class="ttc" id="abuffer_8h_html_ad8daf54669a1d2094ce4251dbb502178ab7c6da1408b1b2ec3a6657e5a71a50c3"><div class="ttname"><a href="buffer_8h.html#ad8daf54669a1d2094ce4251dbb502178ab7c6da1408b1b2ec3a6657e5a71a50c3">EVBUFFER_EOL_ANY</a></div><div class="ttdeci">@ EVBUFFER_EOL_ANY</div><div class="ttdoc">Any sequence of CR and LF characters is acceptable as an EOL.</div><div class="ttdef"><b>Definition:</b> buffer.h:433</div></div>
<div class="ttc" id="astructevbuffer__cb__info_html_a18e973448576100923328e4de05ddef5"><div class="ttname"><a href="structevbuffer__cb__info.html#a18e973448576100923328e4de05ddef5">evbuffer_cb_info::orig_size</a></div><div class="ttdeci">size_t orig_size</div><div class="ttdoc">The number of bytes in this evbuffer when callbacks were last invoked.</div><div class="ttdef"><b>Definition:</b> buffer.h:913</div></div>
<div class="ttc" id="abuffer_8h_html_a18e9703ca1a062669412684543f7f537"><div class="ttname"><a href="buffer_8h.html#a18e9703ca1a062669412684543f7f537">evbuffer_reserve_space</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_reserve_space(struct evbuffer *buf, ev_ssize_t size, struct evbuffer_iovec *vec, int n_vec)</div><div class="ttdoc">Reserves space in the last chain or chains of an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a13a9ee759900ce2964d16acd5f309014a78a0ff3721ff5f1647f743dcfb2f13ee"><div class="ttname"><a href="buffer_8h.html#a13a9ee759900ce2964d16acd5f309014a78a0ff3721ff5f1647f743dcfb2f13ee">EVBUFFER_PTR_SET</a></div><div class="ttdeci">@ EVBUFFER_PTR_SET</div><div class="ttdoc">Sets the pointer to the position; can be called on with an uninitialized evbuffer_ptr.</div><div class="ttdef"><b>Definition:</b> buffer.h:822</div></div>
<div class="ttc" id="astructevbuffer__iovec_html_a0b1981aa931c720e63238022d74c0ac1"><div class="ttname"><a href="structevbuffer__iovec.html#a0b1981aa931c720e63238022d74c0ac1">evbuffer_iovec::iov_len</a></div><div class="ttdeci">size_t iov_len</div><div class="ttdoc">The length of the extent of memory.</div><div class="ttdef"><b>Definition:</b> buffer.h:141</div></div>
<div class="ttc" id="abuffer_8h_html_a60aa7eb8766fcbeadc17f722a095c624"><div class="ttname"><a href="buffer_8h.html#a60aa7eb8766fcbeadc17f722a095c624">evbuffer_add_buffer_reference</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_add_buffer_reference(struct evbuffer *outbuf, struct evbuffer *inbuf)</div><div class="ttdoc">Copy data from one evbuffer into another evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_abc4912118c60071766c6a9d343186137"><div class="ttname"><a href="buffer_8h.html#abc4912118c60071766c6a9d343186137">evbuffer_remove_cb</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_remove_cb(struct evbuffer *buffer, evbuffer_cb_func cb, void *cbarg)</div><div class="ttdoc">Remove a callback from an evbuffer, given the function and argument used to add it.</div></div>
<div class="ttc" id="abuffer_8h_html_a7a853e8ebc063d32cd11f1554c77615d"><div class="ttname"><a href="buffer_8h.html#a7a853e8ebc063d32cd11f1554c77615d">evbuffer_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct evbuffer * evbuffer_new(void)</div><div class="ttdoc">Allocate storage for a new evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_a94fa0f064f3a5d273a362762eb6b1410"><div class="ttname"><a href="buffer_8h.html#a94fa0f064f3a5d273a362762eb6b1410">evbuffer_get_max_read</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL size_t evbuffer_get_max_read(struct evbuffer *buf)</div><div class="ttdoc">Get maximum read buffer size.</div></div>
<div class="ttc" id="abuffer_8h_html_a0b82a4d7dd6853882ed5a87559edbad1"><div class="ttname"><a href="buffer_8h.html#a0b82a4d7dd6853882ed5a87559edbad1">evbuffer_file_segment_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void evbuffer_file_segment_free(struct evbuffer_file_segment *seg)</div><div class="ttdoc">Free an evbuffer_file_segment.</div></div>
<div class="ttc" id="autil_8h_html"><div class="ttname"><a href="util_8h.html">util.h</a></div><div class="ttdoc">Common convenience functions for cross-platform portability and related socket manipulations.</div></div>
<div class="ttc" id="abuffer_8h_html_afdc539f4c3dbae7c671a4a857833a3d5"><div class="ttname"><a href="buffer_8h.html#afdc539f4c3dbae7c671a4a857833a3d5">evbuffer_copyout</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL ev_ssize_t evbuffer_copyout(struct evbuffer *buf, void *data_out, size_t datlen)</div><div class="ttdoc">Read data from an evbuffer, and leave the buffer unchanged.</div></div>
<div class="ttc" id="abuffer_8h_html_ab0767fa82fecc6255129928b02ecc1d6"><div class="ttname"><a href="buffer_8h.html#ab0767fa82fecc6255129928b02ecc1d6">evbuffer_file_segment_add_cleanup_cb</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void evbuffer_file_segment_add_cleanup_cb(struct evbuffer_file_segment *seg, evbuffer_file_segment_cleanup_cb cb, void *arg)</div><div class="ttdoc">Add cleanup callback and argument for the callback to an evbuffer_file_segment.</div></div>
<div class="ttc" id="abuffer_8h_html_a8d4919171c71fc41515c0373e8264527"><div class="ttname"><a href="buffer_8h.html#a8d4919171c71fc41515c0373e8264527">evbuffer_expand</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_expand(struct evbuffer *buf, size_t datlen)</div><div class="ttdoc">Expands the available space in an evbuffer.</div></div>
<div class="ttc" id="abuffer_8h_html_ae384dcadf478c364d005f57be899b21b"><div class="ttname"><a href="buffer_8h.html#ae384dcadf478c364d005f57be899b21b">evbuffer_cb_clear_flags</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int evbuffer_cb_clear_flags(struct evbuffer *buffer, struct evbuffer_cb_entry *cb, ev_uint32_t flags)</div><div class="ttdoc">Change the flags that are set for a callback on a buffer by removing some.</div></div>
<div class="ttc" id="autil_8h_html_a7ef0023565082a65020f6e56be59fd0b"><div class="ttname"><a href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a></div><div class="ttdeci">#define evutil_socket_t</div><div class="ttdoc">A type wide enough to hold the output of "socket()" or "accept()".</div><div class="ttdef"><b>Definition:</b> util.h:325</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated 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>