2 // Copyright (c) 2019 Damian Jarek(damian.jarek93@gmail.com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_CORE_DETAIL_CHAR_BUFFER_HPP
11 #define BOOST_BEAST_CORE_DETAIL_CHAR_BUFFER_HPP
13 #include <boost/config.hpp>
22 template <std::size_t N>
26 bool try_push_back(char c)
34 bool try_append(char const* first, char const* last)
36 std::size_t const n = last - first;
39 std::memmove(&buf_[size_], first, n);
54 char const* data() const noexcept
59 std::size_t size() const noexcept
64 bool empty() const noexcept