From 8f3d5a094c2dd1a1d5a5de26f5518aeb7777ccd5 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 19 Jul 2017 14:07:33 -0700 Subject: [PATCH] Add consuming_buffers::get --- CHANGELOG.md | 1 + include/beast/core/consuming_buffers.hpp | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6a2688..45ac731b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 84: * static_buffer::consume improvement * multi_buffer is type-check friendly * bind_handler allows placeholders +* Add consuming_buffers::get -------------------------------------------------------------------------------- diff --git a/include/beast/core/consuming_buffers.hpp b/include/beast/core/consuming_buffers.hpp index a63c0a46..7472c894 100644 --- a/include/beast/core/consuming_buffers.hpp +++ b/include/beast/core/consuming_buffers.hpp @@ -112,9 +112,16 @@ public: /// Assignment consuming_buffers& operator=(consuming_buffers&&); - /// Assignmen + /// Assignment consuming_buffers& operator=(consuming_buffers const&); + /// Returns the underlying buffers, without modification + BufferSequence const& + get() const + { + return bs_; + } + /// Get a bidirectional iterator to the first element. const_iterator begin() const;