mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Refactor static_buffer
This commit is contained in:
committed by
Vinnie Falco
parent
69ef525d5c
commit
fc5399722e
@ -2,11 +2,14 @@ Version 286:
|
||||
|
||||
* Refactor multi_buffer
|
||||
* Refactor buffers_adapter
|
||||
* Refactor static_buffer
|
||||
|
||||
API Changes:
|
||||
|
||||
* multi_buffer::mutable_data_type is deprecated. Use multi_buffer::mutable_buffers_type instead
|
||||
* buffers_adaptor::mutable_data_type is deprecated. Use buffers_adaptor::mutable_buffers_type instead
|
||||
* multi_buffer::mutable_data_type is deprecated. Use multi_buffer::mutable_buffers_type instead.
|
||||
* buffers_adaptor::mutable_data_type is deprecated. Use buffers_adaptor::mutable_buffers_type instead.
|
||||
* static_buffer::mutable_data_type is deprecated. Use static_buffer::mutable_buffers_type instead.
|
||||
* static_buffer_base::mutable_data_type is deprecated. Use static_buffer_base::mutable_buffers_type instead.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -56,7 +56,7 @@ data() const noexcept ->
|
||||
auto
|
||||
static_buffer_base::
|
||||
data() noexcept ->
|
||||
mutable_data_type
|
||||
mutable_buffers_type
|
||||
{
|
||||
if(in_off_ + in_size_ <= capacity_)
|
||||
return {
|
||||
|
@ -94,14 +94,15 @@ public:
|
||||
/// The ConstBufferSequence used to represent the readable bytes.
|
||||
using const_buffers_type = __implementation_defined__;
|
||||
|
||||
/// The MutableBufferSequence used to represent the readable bytes.
|
||||
using mutable_data_type = __implementation_defined__;
|
||||
|
||||
/// The MutableBufferSequence used to represent the writable bytes.
|
||||
using mutable_buffers_type = __implementation_defined__;
|
||||
#else
|
||||
using const_buffers_type = detail::buffers_pair<false>;
|
||||
|
||||
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
|
||||
using mutable_data_type = detail::buffers_pair<true>;
|
||||
#endif
|
||||
|
||||
using mutable_buffers_type = detail::buffers_pair<true>;
|
||||
#endif
|
||||
|
||||
@ -140,7 +141,7 @@ public:
|
||||
|
||||
/// Returns a mutable buffer sequence representing the readable bytes
|
||||
BOOST_BEAST_DECL
|
||||
mutable_data_type
|
||||
mutable_buffers_type
|
||||
data() noexcept;
|
||||
|
||||
/** Returns a mutable buffer sequence representing writable bytes.
|
||||
|
Reference in New Issue
Block a user