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

Method write_some

include/boost/asio/impl/buffered_write_stream.hpp:174–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172template <typename Stream>
173template <typename ConstBufferSequence>
174std::size_t buffered_write_stream<Stream>::write_some(
175 const ConstBufferSequence& buffers)
176{
177 using boost::asio::buffer_size;
178 if (buffer_size(buffers) == 0)
179 return 0;
180
181 if (storage_.size() == storage_.capacity())
182 this->flush();
183
184 return this->copy(buffers);
185}
186
187template <typename Stream>
188template <typename ConstBufferSequence>

Callers 1

writeFunction · 0.45

Calls 6

copyMethod · 0.95
buffer_sizeFunction · 0.85
flushFunction · 0.85
flushMethod · 0.80
sizeMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected