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

Method data

include/boost/asio/basic_streambuf.hpp:194–198  ·  view source on GitHub ↗

Get a list of buffers that represents the input sequence. * @returns An object of type @c const_buffers_type that satisfies * ConstBufferSequence requirements, representing all character arrays in the * input sequence. * * @note The returned object is invalidated by any @c basic_streambuf member * function that modifies the input sequence or output sequence. */

Source from the content-addressed store, hash-verified

192 * function that modifies the input sequence or output sequence.
193 */
194 const_buffers_type data() const noexcept
195 {
196 return boost::asio::buffer(boost::asio::const_buffer(gptr(),
197 (pptr() - gptr()) * sizeof(char_type)));
198 }
199
200 /// Get a list of buffers that represents the output sequence, with the given
201 /// size.

Callers 1

dataMethod · 0.45

Calls 2

bufferFunction · 0.85
const_bufferFunction · 0.70

Tested by

no test coverage detected