64 lines
3.9 KiB
HTML
64 lines
3.9 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<title>basic_streambuf::commit</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="../basic_streambuf.html" title="basic_streambuf">
|
||
|
<link rel="prev" href="capacity.html" title="basic_streambuf::capacity">
|
||
|
<link rel="next" href="const_buffers_type.html" title="basic_streambuf::const_buffers_type">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
</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="capacity.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_streambuf.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="const_buffers_type.html"><img src="../../../next.png" alt="Next"></a>
|
||
|
</div>
|
||
|
<div class="section">
|
||
|
<div class="titlepage"><div><div><h4 class="title">
|
||
|
<a name="asio.reference.basic_streambuf.commit"></a><a class="link" href="commit.html" title="basic_streambuf::commit">basic_streambuf::commit</a>
|
||
|
</h4></div></div></div>
|
||
|
<p>
|
||
|
<a class="indexterm" name="asio.indexterm.basic_streambuf.commit"></a>
|
||
|
Move characters
|
||
|
from the output sequence to the input sequence.
|
||
|
</p>
|
||
|
<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">commit</span><span class="special">(</span>
|
||
|
<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">n</span><span class="special">);</span>
|
||
|
</pre>
|
||
|
<p>
|
||
|
Appends <code class="computeroutput"><span class="identifier">n</span></code> characters from
|
||
|
the start of the output sequence to the input sequence. The beginning of
|
||
|
the output sequence is advanced by <code class="computeroutput"><span class="identifier">n</span></code>
|
||
|
characters.
|
||
|
</p>
|
||
|
<p>
|
||
|
Requires a preceding call <code class="computeroutput"><span class="identifier">prepare</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span></code>
|
||
|
where <code class="computeroutput"><span class="identifier">x</span> <span class="special">>=</span>
|
||
|
<span class="identifier">n</span></code>, and no intervening operations
|
||
|
that modify the input or output sequence.
|
||
|
</p>
|
||
|
<h6>
|
||
|
<a name="asio.reference.basic_streambuf.commit.h0"></a>
|
||
|
<span><a name="asio.reference.basic_streambuf.commit.remarks"></a></span><a class="link" href="commit.html#asio.reference.basic_streambuf.commit.remarks">Remarks</a>
|
||
|
</h6>
|
||
|
<p>
|
||
|
If <code class="computeroutput"><span class="identifier">n</span></code> is greater than the
|
||
|
size of the output sequence, the entire output sequence is moved to the
|
||
|
input sequence and no error is issued.
|
||
|
</p>
|
||
|
</div>
|
||
|
<div class="copyright-footer">Copyright © 2003-2023 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>
|
||
|
<hr>
|
||
|
<div class="spirit-nav">
|
||
|
<a accesskey="p" href="capacity.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_streambuf.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="const_buffers_type.html"><img src="../../../next.png" alt="Next"></a>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|