MCPcopy Create free account
hub / github.com/Stiffstream/restinio / custom_buffer_t

Method custom_buffer_t

dev/sample/custom_buffer/main.cpp:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7 public:
8 custom_buffer_t(
9 std::unique_ptr< char[] > buf,
10 std::size_t buf_size )
11 : m_buf{ std::move( buf ) }
12 , m_buf_size{ buf_size }
13 {}
14
15 // No copy, only moves.
16 custom_buffer_t( const custom_buffer_t & ) = delete;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected