Vinnie Falco
94e92e75b7
Rename to flat_static_buffer and flat_static_buffer_base (API Change):
...
Actions Required:
* Rename static_buffer to flat_static_buffer_base
* Rename static_buffer_n to flat_static_buffer
2017-07-20 08:15:31 -07:00
Vinnie Falco
b18d0d15b0
Pass string_view by value
2017-07-20 08:15:31 -07:00
Vinnie Falco
9bfb5374f1
Shrink buffer_prefix_view
2017-07-20 08:15:30 -07:00
Vinnie Falco
b65f0abd50
Javadoc tidying
2017-07-20 08:15:30 -07:00
Vinnie Falco
93ae544f9c
Tidy up file_posix unused variable
2017-07-20 08:15:30 -07:00
Vinnie Falco
eb4a4d41f0
file_posix works without large file support
...
fix #632
2017-07-20 08:15:30 -07:00
Vinnie Falco
cc198db10e
serializing file_body is not const
2017-07-20 08:15:30 -07:00
Vinnie Falco
731164bec2
Add serializer::limit
2017-07-20 08:15:30 -07:00
Vinnie Falco
8ee911f632
Construct buffer_prefix_view in-place
2017-07-20 08:15:30 -07:00
Vinnie Falco
eec5f1d8b6
Add file_posix
2017-07-20 08:15:30 -07:00
Vinnie Falco
7254cc8976
Add file_win32
2017-07-20 08:15:30 -07:00
Vinnie Falco
ddc3099281
Add file_stdio and File concept
2017-07-20 08:15:30 -07:00
Vinnie Falco
58d42cc803
Use BEAST_FALLTHROUGH to silence warnings
...
fix #545
2017-07-20 08:15:29 -07:00
Vinnie Falco
f0e32882e2
Make consuming_buffers smaller
2017-07-20 08:15:28 -07:00
Vinnie Falco
518ae23383
string_param optimizations
2017-07-20 08:15:28 -07:00
Vinnie Falco
8f4e7fd0a0
Fix unused variable warnings
2017-07-20 08:15:28 -07:00
Vinnie Falco
6d489b4658
Simplify buffered_read_stream composed op
...
fix #358
2017-07-20 08:15:28 -07:00
Vinnie Falco
4d393f4c2a
Clear the error faster
2017-07-20 08:15:27 -07:00
Vinnie Falco
ca109693fb
Reset error codes
...
fix #478
2017-07-20 08:12:20 -07:00
Vinnie Falco
a49c096042
read_size replaces read_size_helper:
...
* detail::read_size_helper is removed
* public function read_size helps determine the optimum
size for calls to a DynamicBuffer's prepare function.
* special case for Asio types which don't conform to
the concept but have their own helper function.
2017-07-20 08:12:20 -07:00
Vinnie Falco
e58833d7dd
consuming_buffers members and coverage
2017-07-20 08:12:19 -07:00
Vinnie Falco
260b506520
multi_buffer members and coverage
...
fix #458
2017-07-20 08:12:19 -07:00
Vinnie Falco
5d6d486da4
flat_buffer coverage
2017-07-20 08:12:19 -07:00
Vinnie Falco
99f2425de4
static_buffer coverage
2017-07-20 08:12:19 -07:00
Vinnie Falco
23863230de
flat_buffer is an AllocatorAwareContainer
...
fix #453
2017-07-20 08:12:19 -07:00
Vinnie Falco
196d9c60fa
multi_buffer implementation change (API Change):
...
fix #440
WARNING
multi_buffer constructor now takes a maximum size instead of the
"allocation size". This is a breaking change. The allocation size
feature is removed. To update calling code, remove the allocation
size parameter from call sites.
* multi_buffer now uses a geometric growth algorithm for better performance.
2017-07-20 08:12:19 -07:00
Vinnie Falco
7952578e1d
Tune up static_buffer (API Change):
...
The static buffer is updated:
* reset() is no longer a member. Use b.consume(b.size()) instead.
* Simplified implementaton, uses asio instead of custom types
* Better stream performance: consuming the input makes room
available in the output. This class is now suitable for
HTTP reads.
These changes permit the static_buffer wrapper to adapt a user
memory buffer if desired, including a stack based array.
The static_buffer_n class may also be used for this purpose,
it comes with its own storage.
2017-07-20 08:12:19 -07:00
Vinnie Falco
943830f6ed
Fields concept work
2017-07-20 08:12:18 -07:00
Vinnie Falco
9ab9f09189
Make buffer_prefix_view public
...
fix #408
2017-07-20 08:12:18 -07:00
Vinnie Falco
982d20001f
Rename to buffer_cat_view (API Change)
...
fix #408
2017-07-20 08:12:18 -07:00
Vinnie Falco
afab639532
Fix leak in basic_flat_buffer
2017-07-20 08:12:17 -07:00
Vinnie Falco
b76eb2864e
buffer_size overload for basic_multi_buffer::const_buffers_type
2017-07-20 08:12:17 -07:00
Vinnie Falco
4ed6a7fe21
Disable reverse_iterator buffer_view test
2017-07-20 08:12:17 -07:00
Vinnie Falco
056bf5ff99
buffer_view skips empty buffer sequences
2017-07-20 08:12:17 -07:00
Vinnie Falco
24fd5ec8af
Use BOOST_STATIC_ASSERT
...
fix #380
2017-07-20 08:12:17 -07:00
Vinnie Falco
929174d4d8
Tidy up read_size_helper and dynamic buffers
...
fix #376
2017-07-20 08:12:17 -07:00
Vinnie Falco
3543b4b913
Use BOOST_THROW_EXCEPTION
...
fix #370
2017-07-20 08:12:17 -07:00
Vinnie Falco
39697ea37f
Additional constructors for consuming_buffers
2017-07-20 08:12:17 -07:00
Vinnie Falco
000349ba23
Fix strict aliasing warnings in buffers_view
2017-07-20 08:12:17 -07:00
Vinnie Falco
9e16e24ec4
Make buffers_view a public interface
2017-07-20 08:12:17 -07:00
Vinnie Falco
71e4fbe428
Remove handler helpers, tidy up hook invocations (API Change)
2017-07-20 08:12:17 -07:00
Vinnie Falco
51f11f0902
Concept revision and documentation (API Change):
...
The concept type traits are renamed for consistency,
and consolidated into a single header file <beast/core/type_traits.hpp>
A new section, Core Concepts, is added to the documentation describing all
of the core utility classes and functions. This also includes a complete
explanation and sample program describing how to write asynchronous initiation
functions and their associated composed operations.
2017-07-20 08:12:16 -07:00
Vinnie Falco
aa8a0a2a4b
Replace asynchronous helper macros with template aliases (API Change)
2017-07-20 08:12:16 -07:00
Vinnie Falco
4edd797611
Add to_static_string:
...
This function converts integers to their decimal
representation as a static string.
In addition, static_string::resize no longer initializes
characters if the new size is larger.
2017-07-20 08:12:16 -07:00
Vinnie Falco
d9562ff525
Harmonize concepts and identifiers with net-ts (API Change):
...
fix #321
This synchronizes identifier names and some implementation details
with the Networking-TS document and reference implementation.
The following interfaces have changed:
* async_completion
* is_buffer_sequence (removed)
* is_const_buffer_sequence (was is_ConstBufferSequence)
* is_dynamic_buffer (was is_DynamicBuffer)
* is_mutable_buffer_sequence (was is_MutableBufferSequence)
* async_result (new)
* BEAST_HANDLER_TYPE macro (new)
* BEAST_INITFN_RESULT_TYPE macro (new)
Filename changes:
* async_result.hpp (was async_completion.hpp)
2017-07-20 08:12:16 -07:00
Vinnie Falco
84ece031f2
Use beast::string_view alias
2017-07-20 08:12:16 -07:00
Vinnie Falco
fc0e356149
Rename to buffered_read_stream (API Change):
...
dynabuf_readstream is renamed to buffered_read_stream.
2017-07-20 08:12:16 -07:00
Vinnie Falco
aa9f42cd06
Rename to static_buffer, static_buffer_n (API Change):
...
These classes are renamed:
* static_streambuf to static_buffer
* static_streambuf_n to static_buffer_n
2017-07-20 08:12:16 -07:00
Vinnie Falco
6e47e9a0ac
Rename to flat_buffer, basic_flat_buffer (API Change):
...
These classes are renamed:
* flat_streambuf to flat_buffer
* basic_flat_streambuf to basic_flat_buffer
2017-07-20 08:12:16 -07:00
Vinnie Falco
24fd254690
Rename to multi_buffer, basic_multi_buffer (API Change):
...
These classes are renamed:
* streambuf to multi_buffer
* basic_streambuf to basic_multi_buffer
2017-07-20 08:12:16 -07:00