ゴミ箱
read_size.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
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)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9 
10 #ifndef BOOST_BEAST_READ_SIZE_HELPER_HPP
11 #define BOOST_BEAST_READ_SIZE_HELPER_HPP
12 
13 #include <boost/beast/config.hpp>
15 #include <boost/throw_exception.hpp>
16 
17 namespace boost {
18 namespace beast {
19 
35 template<class DynamicBuffer>
36 std::size_t
37 read_size(DynamicBuffer& buffer, std::size_t max_size);
38 
54 template<class DynamicBuffer>
55 std::size_t
56 read_size_or_throw(DynamicBuffer& buffer,
57  std::size_t max_size);
58 
59 } // beast
60 } // boost
61 
63 
64 #endif
Definition: async_result.hpp:20
std::size_t read_size(DynamicBuffer &buffer, std::size_t max_size)
Definition: read_size.ipp:57
std::size_t read_size_or_throw(DynamicBuffer &buffer, std::size_t max_size)
Definition: read_size.ipp:66