1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>static_buffer_base::static_buffer_base</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Beast"> 8<link rel="up" href="../boost__beast__static_buffer_base.html" title="static_buffer_base"> 9<link rel="prev" href="mutable_buffers_type.html" title="static_buffer_base::mutable_buffers_type"> 10<link rel="next" href="clear.html" title="static_buffer_base::clear"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="mutable_buffers_type.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__static_buffer_base.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h5 class="title"> 27<a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base"></a><a class="link" href="static_buffer_base.html" title="static_buffer_base::static_buffer_base">static_buffer_base::static_buffer_base</a> 28</h5></div></div></div> 29<p> 30 <a class="indexterm" name="idm46057524980048"></a> 31 </p> 32<p> 33 Constructor. 34 </p> 35<h6> 36<a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.h0"></a> 37 <span class="phrase"><a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.synopsis"></a></span><a class="link" href="static_buffer_base.html#beast.ref.boost__beast__static_buffer_base.static_buffer_base.synopsis">Synopsis</a> 38 </h6> 39<pre class="programlisting"><span class="identifier">static_buffer_base</span><span class="special">(</span> 40 <span class="keyword">void</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> 41 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">size</span><span class="special">);</span> 42</pre> 43<h6> 44<a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.h1"></a> 45 <span class="phrase"><a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.description"></a></span><a class="link" href="static_buffer_base.html#beast.ref.boost__beast__static_buffer_base.static_buffer_base.description">Description</a> 46 </h6> 47<p> 48 This creates a dynamic buffer using the provided storage area. 49 </p> 50<h6> 51<a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.h2"></a> 52 <span class="phrase"><a name="beast.ref.boost__beast__static_buffer_base.static_buffer_base.parameters"></a></span><a class="link" href="static_buffer_base.html#beast.ref.boost__beast__static_buffer_base.static_buffer_base.parameters">Parameters</a> 53 </h6> 54<div class="informaltable"><table class="table"> 55<colgroup> 56<col> 57<col> 58</colgroup> 59<thead><tr> 60<th> 61 <p> 62 Name 63 </p> 64 </th> 65<th> 66 <p> 67 Description 68 </p> 69 </th> 70</tr></thead> 71<tbody> 72<tr> 73<td> 74 <p> 75 <code class="computeroutput"><span class="identifier">p</span></code> 76 </p> 77 </td> 78<td> 79 <p> 80 A pointer to valid storage of at least <code class="computeroutput"><span class="identifier">n</span></code> 81 bytes. 82 </p> 83 </td> 84</tr> 85<tr> 86<td> 87 <p> 88 <code class="computeroutput"><span class="identifier">size</span></code> 89 </p> 90 </td> 91<td> 92 <p> 93 The number of valid bytes pointed to by <code class="computeroutput"><span class="identifier">p</span></code>. 94 </p> 95 </td> 96</tr> 97</tbody> 98</table></div> 99</div> 100<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 101<td align="left"></td> 102<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie 103 Falco<p> 104 Distributed under the Boost Software License, Version 1.0. (See accompanying 105 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>) 106 </p> 107</div></td> 108</tr></table> 109<hr> 110<div class="spirit-nav"> 111<a accesskey="p" href="mutable_buffers_type.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__static_buffer_base.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 112</div> 113</body> 114</html> 115