template&lt;
    typename Elem,
    typename Traits&gt;
const_buffer buffer(
    basic_string_view&lt; Elem, Traits &gt; data);
</pre>
<h6>
<a name="boost_asio.reference.buffer.overload31.h0"></a>
          <span class="phrase"><a name="boost_asio.reference.buffer.overload31.return_value"></a></span><a class="link" href="overload31.html#boost_asio.reference.buffer.overload31.return_value">Return Value</a>
        </h6>
<p>
          <code class="computeroutput">mutable_buffer(data.size() ? &amp;data[0] : 0,