MCPcopy Create free account
hub / github.com/boostorg/asio / commit

Method commit

include/boost/asio/basic_streambuf.hpp:235–240  ·  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

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

Callers 4

handle_receiveMethod · 0.45
testFunction · 0.45
streambuf_testFunction · 0.45
commitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected