Refactor static_buffer

This commit is contained in:
Richard Hodges
2020-02-25 20:14:24 +01:00
committed by Vinnie Falco
parent 69ef525d5c
commit fc5399722e
3 changed files with 11 additions and 7 deletions

View File

@ -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.
--------------------------------------------------------------------------------

View File

@ -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 {

View File

@ -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.