MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / fill

Method fill

3rd/asio-1.24.0/include/asio/impl/buffered_read_stream.hpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename Stream>
31std::size_t buffered_read_stream<Stream>::fill()
32{
33 detail::buffer_resize_guard<detail::buffered_stream_storage>
34 resize_guard(storage_);
35 std::size_t previous_size = storage_.size();
36 storage_.resize(storage_.capacity());
37 storage_.resize(previous_size + next_layer_.read_some(buffer(
38 storage_.data() + previous_size,
39 storage_.size() - previous_size)));
40 resize_guard.commit();
41 return storage_.size() - previous_size;
42}
43
44template <typename Stream>
45std::size_t buffered_read_stream<Stream>::fill(asio::error_code& ec)

Callers 5

read_someMethod · 0.95
peekMethod · 0.95
json.hppFile · 0.80
json.hppFile · 0.80
fillFunction · 0.80

Calls 7

bufferFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
capacityMethod · 0.45
read_someMethod · 0.45
dataMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected