mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57: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 multi_buffer
|
||||||
* Refactor buffers_adapter
|
* Refactor buffers_adapter
|
||||||
|
* Refactor static_buffer
|
||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
* multi_buffer::mutable_data_type is deprecated. Use multi_buffer::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
|
* 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
|
auto
|
||||||
static_buffer_base::
|
static_buffer_base::
|
||||||
data() noexcept ->
|
data() noexcept ->
|
||||||
mutable_data_type
|
mutable_buffers_type
|
||||||
{
|
{
|
||||||
if(in_off_ + in_size_ <= capacity_)
|
if(in_off_ + in_size_ <= capacity_)
|
||||||
return {
|
return {
|
||||||
|
@ -94,14 +94,15 @@ public:
|
|||||||
/// The ConstBufferSequence used to represent the readable bytes.
|
/// The ConstBufferSequence used to represent the readable bytes.
|
||||||
using const_buffers_type = __implementation_defined__;
|
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.
|
/// The MutableBufferSequence used to represent the writable bytes.
|
||||||
using mutable_buffers_type = __implementation_defined__;
|
using mutable_buffers_type = __implementation_defined__;
|
||||||
#else
|
#else
|
||||||
using const_buffers_type = detail::buffers_pair<false>;
|
using const_buffers_type = detail::buffers_pair<false>;
|
||||||
|
|
||||||
|
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
|
||||||
using mutable_data_type = detail::buffers_pair<true>;
|
using mutable_data_type = detail::buffers_pair<true>;
|
||||||
|
#endif
|
||||||
|
|
||||||
using mutable_buffers_type = detail::buffers_pair<true>;
|
using mutable_buffers_type = detail::buffers_pair<true>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -140,7 +141,7 @@ public:
|
|||||||
|
|
||||||
/// Returns a mutable buffer sequence representing the readable bytes
|
/// Returns a mutable buffer sequence representing the readable bytes
|
||||||
BOOST_BEAST_DECL
|
BOOST_BEAST_DECL
|
||||||
mutable_data_type
|
mutable_buffers_type
|
||||||
data() noexcept;
|
data() noexcept;
|
||||||
|
|
||||||
/** Returns a mutable buffer sequence representing writable bytes.
|
/** Returns a mutable buffer sequence representing writable bytes.
|
||||||
|
Reference in New Issue
Block a user