Adds asio library and Storage Module

This commit is contained in:
Suraxius committed 2020-12-01 22:41:04 +01:00
1 parent 79a6ee5779
commit 30439acd43
4869 files changed
+618801 -903

No files matched your search

@@ -0,0 +1,51 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (1 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="../buffer.html" title="buffer">
<link rel="next" href="overload2.html" title="buffer (2 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../buffer.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload1"></a><a class="link" href="overload1.html" title="buffer (1 of 32 overloads)">buffer (1 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer from an existing buffer.
</p>
<pre class="programlisting">mutable_buffer buffer(
const mutable_buffer &amp; b);
</pre>
<h6>
<a name="asio.reference.buffer.overload1.h0"></a>
<span><a name="asio.reference.buffer.overload1.return_value"></a></span><a class="link" href="overload1.html#asio.reference.buffer.overload1.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">mutable_buffer(b)</code>.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../buffer.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (10 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload9.html" title="buffer (9 of 32 overloads)">
<link rel="next" href="overload11.html" title="buffer (11 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload9.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload11.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload10"></a><a class="link" href="overload10.html" title="buffer (10 of 32 overloads)">buffer (10 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const PodType (&amp;data)[N],
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload10.h0"></a>
<span><a name="asio.reference.buffer.overload10.return_value"></a></span><a class="link" href="overload10.html#asio.reference.buffer.overload10.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
static_cast&lt;const void*&gt;(data),
min(N * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload9.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload11.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (11 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload10.html" title="buffer (10 of 32 overloads)">
<link rel="next" href="overload12.html" title="buffer (12 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload10.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload12.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload11"></a><a class="link" href="overload11.html" title="buffer (11 of 32 overloads)">buffer (11 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
boost::array&lt; PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload11.h0"></a>
<span><a name="asio.reference.buffer.overload11.return_value"></a></span><a class="link" href="overload11.html#asio.reference.buffer.overload11.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload10.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload12.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (12 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload11.html" title="buffer (11 of 32 overloads)">
<link rel="next" href="overload13.html" title="buffer (13 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload11.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload13.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload12"></a><a class="link" href="overload12.html" title="buffer (12 of 32 overloads)">buffer (12 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
boost::array&lt; PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload12.h0"></a>
<span><a name="asio.reference.buffer.overload12.return_value"></a></span><a class="link" href="overload12.html#asio.reference.buffer.overload12.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload11.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload13.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (13 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload12.html" title="buffer (12 of 32 overloads)">
<link rel="next" href="overload14.html" title="buffer (14 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload12.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload14.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload13"></a><a class="link" href="overload13.html" title="buffer (13 of 32 overloads)">buffer (13 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
boost::array&lt; const PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload13.h0"></a>
<span><a name="asio.reference.buffer.overload13.return_value"></a></span><a class="link" href="overload13.html#asio.reference.buffer.overload13.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload12.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload14.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (14 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload13.html" title="buffer (13 of 32 overloads)">
<link rel="next" href="overload15.html" title="buffer (15 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload13.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload15.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload14"></a><a class="link" href="overload14.html" title="buffer (14 of 32 overloads)">buffer (14 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
boost::array&lt; const PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload14.h0"></a>
<span><a name="asio.reference.buffer.overload14.return_value"></a></span><a class="link" href="overload14.html#asio.reference.buffer.overload14.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload13.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload15.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (15 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload14.html" title="buffer (14 of 32 overloads)">
<link rel="next" href="overload16.html" title="buffer (16 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload14.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload16.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload15"></a><a class="link" href="overload15.html" title="buffer (15 of 32 overloads)">buffer (15 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const boost::array&lt; PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload15.h0"></a>
<span><a name="asio.reference.buffer.overload15.return_value"></a></span><a class="link" href="overload15.html#asio.reference.buffer.overload15.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload14.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload16.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (16 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload15.html" title="buffer (15 of 32 overloads)">
<link rel="next" href="overload17.html" title="buffer (17 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload15.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload17.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload16"></a><a class="link" href="overload16.html" title="buffer (16 of 32 overloads)">buffer (16 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const boost::array&lt; PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload16.h0"></a>
<span><a name="asio.reference.buffer.overload16.return_value"></a></span><a class="link" href="overload16.html#asio.reference.buffer.overload16.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload15.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload17.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (17 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload16.html" title="buffer (16 of 32 overloads)">
<link rel="next" href="overload18.html" title="buffer (18 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload16.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload18.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload17"></a><a class="link" href="overload17.html" title="buffer (17 of 32 overloads)">buffer (17 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
std::array&lt; PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload17.h0"></a>
<span><a name="asio.reference.buffer.overload17.return_value"></a></span><a class="link" href="overload17.html#asio.reference.buffer.overload17.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload16.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload18.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (18 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload17.html" title="buffer (17 of 32 overloads)">
<link rel="next" href="overload19.html" title="buffer (19 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload17.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload19.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload18"></a><a class="link" href="overload18.html" title="buffer (18 of 32 overloads)">buffer (18 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
std::array&lt; PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload18.h0"></a>
<span><a name="asio.reference.buffer.overload18.return_value"></a></span><a class="link" href="overload18.html#asio.reference.buffer.overload18.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload17.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload19.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (19 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload18.html" title="buffer (18 of 32 overloads)">
<link rel="next" href="overload20.html" title="buffer (20 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload18.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload20.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload19"></a><a class="link" href="overload19.html" title="buffer (19 of 32 overloads)">buffer (19 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
std::array&lt; const PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload19.h0"></a>
<span><a name="asio.reference.buffer.overload19.return_value"></a></span><a class="link" href="overload19.html#asio.reference.buffer.overload19.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload18.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload20.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,57 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (2 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload1.html" title="buffer (1 of 32 overloads)">
<link rel="next" href="overload3.html" title="buffer (3 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload2"></a><a class="link" href="overload2.html" title="buffer (2 of 32 overloads)">buffer (2 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer from an existing buffer.
</p>
<pre class="programlisting">mutable_buffer buffer(
const mutable_buffer &amp; b,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload2.h0"></a>
<span><a name="asio.reference.buffer.overload2.return_value"></a></span><a class="link" href="overload2.html#asio.reference.buffer.overload2.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
b.data(),
min(b.size(), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (20 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload19.html" title="buffer (19 of 32 overloads)">
<link rel="next" href="overload21.html" title="buffer (21 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload19.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload21.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload20"></a><a class="link" href="overload20.html" title="buffer (20 of 32 overloads)">buffer (20 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
std::array&lt; const PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload20.h0"></a>
<span><a name="asio.reference.buffer.overload20.return_value"></a></span><a class="link" href="overload20.html#asio.reference.buffer.overload20.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload19.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload21.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (21 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload20.html" title="buffer (20 of 32 overloads)">
<link rel="next" href="overload22.html" title="buffer (22 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload20.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload22.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload21"></a><a class="link" href="overload21.html" title="buffer (21 of 32 overloads)">buffer (21 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const std::array&lt; PodType, N &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload21.h0"></a>
<span><a name="asio.reference.buffer.overload21.return_value"></a></span><a class="link" href="overload21.html#asio.reference.buffer.overload21.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
data.size() * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload20.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload22.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (22 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload21.html" title="buffer (21 of 32 overloads)">
<link rel="next" href="overload23.html" title="buffer (23 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload21.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload23.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload22"></a><a class="link" href="overload22.html" title="buffer (22 of 32 overloads)">buffer (22 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const std::array&lt; PodType, N &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload22.h0"></a>
<span><a name="asio.reference.buffer.overload22.return_value"></a></span><a class="link" href="overload22.html#asio.reference.buffer.overload22.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload21.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload23.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,68 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (23 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload22.html" title="buffer (22 of 32 overloads)">
<link rel="next" href="overload24.html" title="buffer (24 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload22.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload24.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload23"></a><a class="link" href="overload23.html" title="buffer (23 of 32 overloads)">buffer (23 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD vector.
</p>
<pre class="programlisting">template&lt;
typename PodType,
typename Allocator&gt;
mutable_buffer buffer(
std::vector&lt; PodType, Allocator &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload23.h0"></a>
<span><a name="asio.reference.buffer.overload23.return_value"></a></span><a class="link" href="overload23.html#asio.reference.buffer.overload23.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.size() ? &amp;data[0] : 0,
data.size() * sizeof(PodType));
</pre>
<h6>
<a name="asio.reference.buffer.overload23.h1"></a>
<span><a name="asio.reference.buffer.overload23.remarks"></a></span><a class="link" href="overload23.html#asio.reference.buffer.overload23.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any vector operation that would also invalidate
iterators.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload22.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload24.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,69 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (24 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload23.html" title="buffer (23 of 32 overloads)">
<link rel="next" href="overload25.html" title="buffer (25 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload23.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload25.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload24"></a><a class="link" href="overload24.html" title="buffer (24 of 32 overloads)">buffer (24 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD vector.
</p>
<pre class="programlisting">template&lt;
typename PodType,
typename Allocator&gt;
mutable_buffer buffer(
std::vector&lt; PodType, Allocator &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload24.h0"></a>
<span><a name="asio.reference.buffer.overload24.return_value"></a></span><a class="link" href="overload24.html#asio.reference.buffer.overload24.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.size() ? &amp;data[0] : 0,
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
<h6>
<a name="asio.reference.buffer.overload24.h1"></a>
<span><a name="asio.reference.buffer.overload24.remarks"></a></span><a class="link" href="overload24.html#asio.reference.buffer.overload24.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any vector operation that would also invalidate
iterators.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload23.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload25.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,68 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (25 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload24.html" title="buffer (24 of 32 overloads)">
<link rel="next" href="overload26.html" title="buffer (26 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload24.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload26.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload25"></a><a class="link" href="overload25.html" title="buffer (25 of 32 overloads)">buffer (25 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD vector.
</p>
<pre class="programlisting">template&lt;
typename PodType,
typename Allocator&gt;
const_buffer buffer(
const std::vector&lt; PodType, Allocator &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload25.h0"></a>
<span><a name="asio.reference.buffer.overload25.return_value"></a></span><a class="link" href="overload25.html#asio.reference.buffer.overload25.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.size() ? &amp;data[0] : 0,
data.size() * sizeof(PodType));
</pre>
<h6>
<a name="asio.reference.buffer.overload25.h1"></a>
<span><a name="asio.reference.buffer.overload25.remarks"></a></span><a class="link" href="overload25.html#asio.reference.buffer.overload25.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any vector operation that would also invalidate
iterators.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload24.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload26.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,69 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (26 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload25.html" title="buffer (25 of 32 overloads)">
<link rel="next" href="overload27.html" title="buffer (27 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload25.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload27.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload26"></a><a class="link" href="overload26.html" title="buffer (26 of 32 overloads)">buffer (26 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD vector.
</p>
<pre class="programlisting">template&lt;
typename PodType,
typename Allocator&gt;
const_buffer buffer(
const std::vector&lt; PodType, Allocator &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload26.h0"></a>
<span><a name="asio.reference.buffer.overload26.return_value"></a></span><a class="link" href="overload26.html#asio.reference.buffer.overload26.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.size() ? &amp;data[0] : 0,
min(data.size() * sizeof(PodType), max_size_in_bytes));
</pre>
<h6>
<a name="asio.reference.buffer.overload26.h1"></a>
<span><a name="asio.reference.buffer.overload26.remarks"></a></span><a class="link" href="overload26.html#asio.reference.buffer.overload26.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any vector operation that would also invalidate
iterators.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload25.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload27.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,64 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (27 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload26.html" title="buffer (26 of 32 overloads)">
<link rel="next" href="overload28.html" title="buffer (28 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload26.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload28.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload27"></a><a class="link" href="overload27.html" title="buffer (27 of 32 overloads)">buffer (27 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given string.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits,
typename Allocator&gt;
mutable_buffer buffer(
std::basic_string&lt; Elem, Traits, Allocator &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload27.h0"></a>
<span><a name="asio.reference.buffer.overload27.return_value"></a></span><a class="link" href="overload27.html#asio.reference.buffer.overload27.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">mutable_buffer(data.size() ? &amp;data[0] : 0, data.size() * sizeof(Elem))</code>.
</p>
<h6>
<a name="asio.reference.buffer.overload27.h1"></a>
<span><a name="asio.reference.buffer.overload27.remarks"></a></span><a class="link" href="overload27.html#asio.reference.buffer.overload27.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any non-const operation called on the given
string object.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload26.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload28.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,70 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (28 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload27.html" title="buffer (27 of 32 overloads)">
<link rel="next" href="overload29.html" title="buffer (29 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload27.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload29.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload28"></a><a class="link" href="overload28.html" title="buffer (28 of 32 overloads)">buffer (28 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given string.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits,
typename Allocator&gt;
mutable_buffer buffer(
std::basic_string&lt; Elem, Traits, Allocator &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload28.h0"></a>
<span><a name="asio.reference.buffer.overload28.return_value"></a></span><a class="link" href="overload28.html#asio.reference.buffer.overload28.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.size() ? &amp;data[0] : 0,
min(data.size() * sizeof(Elem), max_size_in_bytes));
</pre>
<h6>
<a name="asio.reference.buffer.overload28.h1"></a>
<span><a name="asio.reference.buffer.overload28.remarks"></a></span><a class="link" href="overload28.html#asio.reference.buffer.overload28.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any non-const operation called on the given
string object.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload27.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload29.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,64 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (29 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload28.html" title="buffer (28 of 32 overloads)">
<link rel="next" href="overload30.html" title="buffer (30 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload28.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload30.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload29"></a><a class="link" href="overload29.html" title="buffer (29 of 32 overloads)">buffer (29 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given string.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits,
typename Allocator&gt;
const_buffer buffer(
const std::basic_string&lt; Elem, Traits, Allocator &gt; &amp; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload29.h0"></a>
<span><a name="asio.reference.buffer.overload29.return_value"></a></span><a class="link" href="overload29.html#asio.reference.buffer.overload29.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">const_buffer(data.data(), data.size() * sizeof(Elem))</code>.
</p>
<h6>
<a name="asio.reference.buffer.overload29.h1"></a>
<span><a name="asio.reference.buffer.overload29.remarks"></a></span><a class="link" href="overload29.html#asio.reference.buffer.overload29.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any non-const operation called on the given
string object.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload28.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload30.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,51 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (3 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload2.html" title="buffer (2 of 32 overloads)">
<link rel="next" href="overload4.html" title="buffer (4 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload3"></a><a class="link" href="overload3.html" title="buffer (3 of 32 overloads)">buffer (3 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer from an existing buffer.
</p>
<pre class="programlisting">const_buffer buffer(
const const_buffer &amp; b);
</pre>
<h6>
<a name="asio.reference.buffer.overload3.h0"></a>
<span><a name="asio.reference.buffer.overload3.return_value"></a></span><a class="link" href="overload3.html#asio.reference.buffer.overload3.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">const_buffer(b)</code>.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,70 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (30 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload29.html" title="buffer (29 of 32 overloads)">
<link rel="next" href="overload31.html" title="buffer (31 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload29.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload31.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload30"></a><a class="link" href="overload30.html" title="buffer (30 of 32 overloads)">buffer (30 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given string.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits,
typename Allocator&gt;
const_buffer buffer(
const std::basic_string&lt; Elem, Traits, Allocator &gt; &amp; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload30.h0"></a>
<span><a name="asio.reference.buffer.overload30.return_value"></a></span><a class="link" href="overload30.html#asio.reference.buffer.overload30.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
data.data(),
min(data.size() * sizeof(Elem), max_size_in_bytes));
</pre>
<h6>
<a name="asio.reference.buffer.overload30.h1"></a>
<span><a name="asio.reference.buffer.overload30.remarks"></a></span><a class="link" href="overload30.html#asio.reference.buffer.overload30.remarks">Remarks</a>
</h6>
<p>
The buffer is invalidated by any non-const operation called on the given
string object.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload29.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload31.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,55 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (31 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload30.html" title="buffer (30 of 32 overloads)">
<link rel="next" href="overload32.html" title="buffer (32 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload30.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload32.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload31"></a><a class="link" href="overload31.html" title="buffer (31 of 32 overloads)">buffer (31 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given string_view.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits&gt;
const_buffer buffer(
basic_string_view&lt; Elem, Traits &gt; data);
</pre>
<h6>
<a name="asio.reference.buffer.overload31.h0"></a>
<span><a name="asio.reference.buffer.overload31.return_value"></a></span><a class="link" href="overload31.html#asio.reference.buffer.overload31.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">mutable_buffer(data.size() ? &amp;data[0] : 0, data.size() * sizeof(Elem))</code>.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload30.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload32.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (32 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload31.html" title="buffer (31 of 32 overloads)">
<link rel="next" href="../buffer_cast.html" title="buffer_cast">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload31.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../buffer_cast.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload32"></a><a class="link" href="overload32.html" title="buffer (32 of 32 overloads)">buffer (32 of 32
overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given string.
</p>
<pre class="programlisting">template&lt;
typename Elem,
typename Traits&gt;
const_buffer buffer(
basic_string_view&lt; Elem, Traits &gt; data,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload32.h0"></a>
<span><a name="asio.reference.buffer.overload32.return_value"></a></span><a class="link" href="overload32.html#asio.reference.buffer.overload32.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
data.size() ? &amp;data[0] : 0,
min(data.size() * sizeof(Elem), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload31.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../buffer_cast.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,57 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (4 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload3.html" title="buffer (3 of 32 overloads)">
<link rel="next" href="overload5.html" title="buffer (5 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload4"></a><a class="link" href="overload4.html" title="buffer (4 of 32 overloads)">buffer (4 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer from an existing buffer.
</p>
<pre class="programlisting">const_buffer buffer(
const const_buffer &amp; b,
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload4.h0"></a>
<span><a name="asio.reference.buffer.overload4.return_value"></a></span><a class="link" href="overload4.html#asio.reference.buffer.overload4.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
b.data(),
min(b.size(), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,52 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (5 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload4.html" title="buffer (4 of 32 overloads)">
<link rel="next" href="overload6.html" title="buffer (6 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload4.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload5"></a><a class="link" href="overload5.html" title="buffer (5 of 32 overloads)">buffer (5 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given memory range.
</p>
<pre class="programlisting">mutable_buffer buffer(
void * data,
std::size_t size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload5.h0"></a>
<span><a name="asio.reference.buffer.overload5.return_value"></a></span><a class="link" href="overload5.html#asio.reference.buffer.overload5.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">mutable_buffer(data, size_in_bytes)</code>.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload4.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,52 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (6 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload5.html" title="buffer (5 of 32 overloads)">
<link rel="next" href="overload7.html" title="buffer (7 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload5.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload6"></a><a class="link" href="overload6.html" title="buffer (6 of 32 overloads)">buffer (6 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given memory range.
</p>
<pre class="programlisting">const_buffer buffer(
const void * data,
std::size_t size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload6.h0"></a>
<span><a name="asio.reference.buffer.overload6.return_value"></a></span><a class="link" href="overload6.html#asio.reference.buffer.overload6.return_value">Return
Value</a>
</h6>
<p>
<code class="computeroutput">const_buffer(data, size_in_bytes)</code>.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload5.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,59 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (7 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload6.html" title="buffer (6 of 32 overloads)">
<link rel="next" href="overload8.html" title="buffer (8 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload6.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload7"></a><a class="link" href="overload7.html" title="buffer (7 of 32 overloads)">buffer (7 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
PodType (&amp;data)[N]);
</pre>
<h6>
<a name="asio.reference.buffer.overload7.h0"></a>
<span><a name="asio.reference.buffer.overload7.return_value"></a></span><a class="link" href="overload7.html#asio.reference.buffer.overload7.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
static_cast&lt;void*&gt;(data),
N * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload6.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,60 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (8 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload7.html" title="buffer (7 of 32 overloads)">
<link rel="next" href="overload9.html" title="buffer (9 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload7.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload8"></a><a class="link" href="overload8.html" title="buffer (8 of 32 overloads)">buffer (8 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
mutable_buffer buffer(
PodType (&amp;data)[N],
std::size_t max_size_in_bytes);
</pre>
<h6>
<a name="asio.reference.buffer.overload8.h0"></a>
<span><a name="asio.reference.buffer.overload8.return_value"></a></span><a class="link" href="overload8.html#asio.reference.buffer.overload8.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../mutable_buffer.html" title="mutable_buffer"><code class="computeroutput">mutable_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">mutable_buffer(
static_cast&lt;void*&gt;(data),
min(N * sizeof(PodType), max_size_in_bytes));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload7.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,59 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>buffer (9 of 32 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../buffer.html" title="buffer">
<link rel="prev" href="overload8.html" title="buffer (8 of 32 overloads)">
<link rel="next" href="overload10.html" title="buffer (10 of 32 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload8.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.buffer.overload9"></a><a class="link" href="overload9.html" title="buffer (9 of 32 overloads)">buffer (9 of 32 overloads)</a>
</h4></div></div></div>
<p>
Create a new non-modifiable buffer that represents the given POD array.
</p>
<pre class="programlisting">template&lt;
typename PodType,
std::size_t N&gt;
const_buffer buffer(
const PodType (&amp;data)[N]);
</pre>
<h6>
<a name="asio.reference.buffer.overload9.h0"></a>
<span><a name="asio.reference.buffer.overload9.return_value"></a></span><a class="link" href="overload9.html#asio.reference.buffer.overload9.return_value">Return
Value</a>
</h6>
<p>
A <a class="link" href="../const_buffer.html" title="const_buffer"><code class="computeroutput">const_buffer</code></a>
value equivalent to:
</p>
<pre class="programlisting">const_buffer(
static_cast&lt;const void*&gt;(data),
N * sizeof(PodType));
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload8.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../buffer.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>