forked from boostorg/beast
Refactor read_op + fail_op
This commit is contained in:
1 parent
3652137718
commit
fa087e19f1
12 files changed
+456
-570
No files matched your search
@@ -54,12 +54,6 @@ public:
|
||||
*/
|
||||
using const_buffers_type = boost::asio::mutable_buffers_1;
|
||||
|
||||
/** The type used to represent the mutable input sequence as a list of buffers.
|
||||
|
||||
This buffer sequence is guaranteed to have length 1.
|
||||
*/
|
||||
using mutable_data_type = boost::asio::mutable_buffers_1;
|
||||
|
||||
/** The type used to represent the output sequence as a list of buffers.
|
||||
|
||||
This buffer sequence is guaranteed to have length 1.
|
||||
@@ -107,13 +101,6 @@ public:
|
||||
const_buffers_type
|
||||
data() const;
|
||||
|
||||
/** Get a list of mutable buffers that represent the input sequence.
|
||||
|
||||
@note These buffers remain valid across subsequent calls to `prepare`.
|
||||
*/
|
||||
mutable_data_type
|
||||
mutable_data();
|
||||
|
||||
/// Set the input and output sequences to size 0
|
||||
void
|
||||
reset();
|
||||
|
||||
@@ -35,15 +35,6 @@ data() const ->
|
||||
return {in_, dist(in_, out_)};
|
||||
}
|
||||
|
||||
inline
|
||||
auto
|
||||
flat_static_buffer_base::
|
||||
mutable_data() ->
|
||||
mutable_data_type
|
||||
{
|
||||
return {in_, dist(in_, out_)};
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
flat_static_buffer_base::
|
||||
|
||||
@@ -50,27 +50,6 @@ data() const ->
|
||||
return result;
|
||||
}
|
||||
|
||||
inline
|
||||
auto
|
||||
static_buffer_base::
|
||||
mutable_data() ->
|
||||
mutable_data_type
|
||||
{
|
||||
using boost::asio::mutable_buffer;
|
||||
mutable_data_type result;
|
||||
if(in_off_ + in_size_ <= capacity_)
|
||||
{
|
||||
result[0] = mutable_buffer{begin_ + in_off_, in_size_};
|
||||
result[1] = mutable_buffer{begin_, 0};
|
||||
}
|
||||
else
|
||||
{
|
||||
result[0] = mutable_buffer{begin_ + in_off_, capacity_ - in_off_};
|
||||
result[1] = mutable_buffer{begin_, in_size_ - (capacity_ - in_off_)};
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
inline
|
||||
auto
|
||||
static_buffer_base::
|
||||
|
||||
@@ -54,10 +54,6 @@ public:
|
||||
using const_buffers_type =
|
||||
std::array<boost::asio::mutable_buffer, 2>;
|
||||
|
||||
/// The type used to represent the mutable input sequence as a list of buffers.
|
||||
using mutable_data_type =
|
||||
std::array<boost::asio::mutable_buffer, 2>;
|
||||
|
||||
/// The type used to represent the output sequence as a list of buffers.
|
||||
using mutable_buffers_type =
|
||||
std::array<boost::asio::mutable_buffer, 2>;
|
||||
@@ -98,11 +94,6 @@ public:
|
||||
const_buffers_type
|
||||
data() const;
|
||||
|
||||
/** Get a list of mutable buffers that represent the input sequence.
|
||||
*/
|
||||
mutable_data_type
|
||||
mutable_data();
|
||||
|
||||
/** Get a list of buffers that represent the output sequence, with the given size.
|
||||
|
||||
@param size The number of bytes to request.
|
||||
|
||||
Reference in new issue
Block a user