1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>const_buffers_1</title> 5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../boost_asio.html" title="Boost.Asio"> 8<link rel="up" href="../reference.html" title="Reference"> 9<link rel="prev" href="const_buffer/size.html" title="const_buffer::size"> 10<link rel="next" href="const_buffers_1/begin.html" title="const_buffers_1::begin"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 15<td align="center"><a href="../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="const_buffer/size.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="const_buffers_1/begin.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="boost_asio.reference.const_buffers_1"></a><a class="link" href="const_buffers_1.html" title="const_buffers_1">const_buffers_1</a> 28</h3></div></div></div> 29<p> 30 (Deprecated: Use <a class="link" href="const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>.) 31 Adapts a single non-modifiable buffer so that it meets the requirements of 32 the ConstBufferSequence concept. 33 </p> 34<pre class="programlisting">class const_buffers_1 : 35 public const_buffer 36</pre> 37<h5> 38<a name="boost_asio.reference.const_buffers_1.h0"></a> 39 <span class="phrase"><a name="boost_asio.reference.const_buffers_1.types"></a></span><a class="link" href="const_buffers_1.html#boost_asio.reference.const_buffers_1.types">Types</a> 40 </h5> 41<div class="informaltable"><table class="table"> 42<colgroup> 43<col> 44<col> 45</colgroup> 46<thead><tr> 47<th> 48 <p> 49 Name 50 </p> 51 </th> 52<th> 53 <p> 54 Description 55 </p> 56 </th> 57</tr></thead> 58<tbody> 59<tr> 60<td> 61 <p> 62 <a class="link" href="const_buffers_1/const_iterator.html" title="const_buffers_1::const_iterator"><span class="bold"><strong>const_iterator</strong></span></a> 63 </p> 64 </td> 65<td> 66 <p> 67 A random-access iterator type that may be used to read elements. 68 </p> 69 </td> 70</tr> 71<tr> 72<td> 73 <p> 74 <a class="link" href="const_buffers_1/value_type.html" title="const_buffers_1::value_type"><span class="bold"><strong>value_type</strong></span></a> 75 </p> 76 </td> 77<td> 78 <p> 79 The type for each element in the list of buffers. 80 </p> 81 </td> 82</tr> 83</tbody> 84</table></div> 85<h5> 86<a name="boost_asio.reference.const_buffers_1.h1"></a> 87 <span class="phrase"><a name="boost_asio.reference.const_buffers_1.member_functions"></a></span><a class="link" href="const_buffers_1.html#boost_asio.reference.const_buffers_1.member_functions">Member Functions</a> 88 </h5> 89<div class="informaltable"><table class="table"> 90<colgroup> 91<col> 92<col> 93</colgroup> 94<thead><tr> 95<th> 96 <p> 97 Name 98 </p> 99 </th> 100<th> 101 <p> 102 Description 103 </p> 104 </th> 105</tr></thead> 106<tbody> 107<tr> 108<td> 109 <p> 110 <a class="link" href="const_buffers_1/begin.html" title="const_buffers_1::begin"><span class="bold"><strong>begin</strong></span></a> 111 </p> 112 </td> 113<td> 114 <p> 115 Get a random-access iterator to the first element. 116 </p> 117 </td> 118</tr> 119<tr> 120<td> 121 <p> 122 <a class="link" href="const_buffers_1/const_buffers_1.html" title="const_buffers_1::const_buffers_1"><span class="bold"><strong>const_buffers_1</strong></span></a> <span class="silver">[constructor]</span> 123 </p> 124 </td> 125<td> 126 <p> 127 Construct to represent a given memory range. <br> <span class="silver"> —</span><br> Construct 128 to represent a single non-modifiable buffer. 129 </p> 130 </td> 131</tr> 132<tr> 133<td> 134 <p> 135 <a class="link" href="const_buffers_1/data.html" title="const_buffers_1::data"><span class="bold"><strong>data</strong></span></a> 136 </p> 137 </td> 138<td> 139 <p> 140 Get a pointer to the beginning of the memory range. 141 </p> 142 </td> 143</tr> 144<tr> 145<td> 146 <p> 147 <a class="link" href="const_buffers_1/end.html" title="const_buffers_1::end"><span class="bold"><strong>end</strong></span></a> 148 </p> 149 </td> 150<td> 151 <p> 152 Get a random-access iterator for one past the last element. 153 </p> 154 </td> 155</tr> 156<tr> 157<td> 158 <p> 159 <a class="link" href="const_buffers_1/operator_plus__eq_.html" title="const_buffers_1::operator+="><span class="bold"><strong>operator+=</strong></span></a> 160 </p> 161 </td> 162<td> 163 <p> 164 Move the start of the buffer by the specified number of bytes. 165 </p> 166 </td> 167</tr> 168<tr> 169<td> 170 <p> 171 <a class="link" href="const_buffers_1/size.html" title="const_buffers_1::size"><span class="bold"><strong>size</strong></span></a> 172 </p> 173 </td> 174<td> 175 <p> 176 Get the size of the memory range. 177 </p> 178 </td> 179</tr> 180</tbody> 181</table></div> 182<h5> 183<a name="boost_asio.reference.const_buffers_1.h2"></a> 184 <span class="phrase"><a name="boost_asio.reference.const_buffers_1.related_functions"></a></span><a class="link" href="const_buffers_1.html#boost_asio.reference.const_buffers_1.related_functions">Related 185 Functions</a> 186 </h5> 187<div class="informaltable"><table class="table"> 188<colgroup> 189<col> 190<col> 191</colgroup> 192<thead><tr> 193<th> 194 <p> 195 Name 196 </p> 197 </th> 198<th> 199 <p> 200 Description 201 </p> 202 </th> 203</tr></thead> 204<tbody><tr> 205<td> 206 <p> 207 <a class="link" href="const_buffers_1/operator_plus_.html" title="const_buffers_1::operator+"><span class="bold"><strong>operator+</strong></span></a> 208 </p> 209 </td> 210<td> 211 <p> 212 Create a new non-modifiable buffer that is offset from the start 213 of another. 214 </p> 215 </td> 216</tr></tbody> 217</table></div> 218<h5> 219<a name="boost_asio.reference.const_buffers_1.h3"></a> 220 <span class="phrase"><a name="boost_asio.reference.const_buffers_1.requirements"></a></span><a class="link" href="const_buffers_1.html#boost_asio.reference.const_buffers_1.requirements">Requirements</a> 221 </h5> 222<p> 223 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/buffer.hpp</code> 224 </p> 225<p> 226 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 227 </p> 228</div> 229<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 230<td align="left"></td> 231<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 232 Kohlhoff<p> 233 Distributed under the Boost Software License, Version 1.0. (See accompanying 234 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 235 </p> 236</div></td> 237</tr></table> 238<hr> 239<div class="spirit-nav"> 240<a accesskey="p" href="const_buffer/size.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="const_buffers_1/begin.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 241</div> 242</body> 243</html> 244