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

Function commit

include/boost/beast/core/flat_buffer.hpp:484–488  ·  view source on GitHub ↗

Append writable bytes to the readable bytes. Appends n bytes from the start of the writable bytes to the end of the readable bytes. The remainder of the writable bytes are discarded. If n is greater than the number of writable bytes, all writable bytes are appended to the readable bytes. All buffers sequences previously obtained using @ref data or

Source from the content-addressed store, hash-verified

482 No-throw guarantee.
483 */
484 void
485 commit(std::size_t n) noexcept
486 {
487 out_ += (std::min)(n, dist(out_, last_));
488 }
489
490 /** Remove bytes from beginning of the readable bytes.
491

Callers 1

copy_fromMethod · 0.85

Calls 1

distFunction · 0.85

Tested by

no test coverage detected