MCPcopy Create free account
hub / github.com/alibaba/async_simple / commit

Method commit

demo_example/asio/asio/basic_streambuf.hpp:233–238  ·  view source on GitHub ↗

Move characters from the output sequence to the input sequence. * Appends @c n characters from the start of the output sequence to the input * sequence. The beginning of the output sequence is advanced by @c n * characters. * * Requires a preceding call prepare(x) where x >= n , and * no intervening operations that modify the input or output sequence. * * @not

Source from the content-addressed store, hash-verified

231 * output sequence is moved to the input sequence and no error is issued.
232 */
233 void commit(std::size_t n)
234 {
235 n = std::min<std::size_t>(n, epptr() - pptr());
236 pbump(static_cast<int>(n));
237 setg(eback(), gptr(), pptr());
238 }
239
240 /// Remove characters from the input sequence.
241 /**

Callers 1

commitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected