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

Function read_until

3rd/asio-1.24.0/include/asio/impl/read_until.hpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template <typename SyncReadStream, typename DynamicBuffer_v1>
78inline std::size_t read_until(SyncReadStream& s,
79 ASIO_MOVE_ARG(DynamicBuffer_v1) buffers, char delim,
80 typename constraint<
81 is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
82 >::type,
83 typename constraint<
84 !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
85 >::type)
86{
87 asio::error_code ec;
88 std::size_t bytes_transferred = read_until(s,
89 ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), delim, ec);
90 asio::detail::throw_error(ec, "read_until");
91 return bytes_transferred;
92}
93
94template <typename SyncReadStream, typename DynamicBuffer_v1>
95std::size_t read_until(SyncReadStream& s,

Callers

nothing calls this directly

Calls 15

throw_errorFunction · 0.85
error_codeClass · 0.85
partial_searchFunction · 0.85
beginFunction · 0.50
endFunction · 0.50
findFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45
max_sizeMethod · 0.45
capacityMethod · 0.45
commitMethod · 0.45
read_someMethod · 0.45

Tested by

no test coverage detected