MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / ASIO_CONST_BUFFER buffer

Function ASIO_CONST_BUFFER buffer

3rd/asio-1.24.0/include/asio/buffer.hpp:941–945  ·  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

939 * @returns <tt>const_buffer(b)</tt>.
940 */
941ASIO_NODISCARD inline ASIO_CONST_BUFFER buffer(
942 const const_buffer& b) ASIO_NOEXCEPT
943{
944 return ASIO_CONST_BUFFER(b);
945}
946
947/// Create a new non-modifiable buffer from an existing buffer.
948/**

Callers

nothing calls this directly

Calls 5

to_addressFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected