MCPcopy Create free account
hub / github.com/boostorg/asio / const_buffer buffer

Function const_buffer buffer

include/boost/asio/buffer.hpp:901–905  ·  view source on GitHub ↗

Create a new non-modifiable buffer from an existing buffer. * @returns const_buffer(b) . */

Source from the content-addressed store, hash-verified

899 * @returns <tt>const_buffer(b)</tt>.
900 */
901BOOST_ASIO_NODISCARD inline const_buffer buffer(
902 const const_buffer& b) noexcept
903{
904 return const_buffer(b);
905}
906
907/// Create a new non-modifiable buffer from an existing buffer.
908/**

Callers

nothing calls this directly

Calls 8

to_addressFunction · 0.85
bufferFunction · 0.85
const_bufferFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
subspanMethod · 0.45

Tested by

no test coverage detected