Rename to buffer_bytes

This commit is contained in:
Vinnie Falco
2019-03-05 11:09:53 -08:00
parent 6ccdcdf51d
commit 9f2b0ce1db
62 changed files with 206 additions and 258 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ std::string string_from_buffers (ConstBufferSequence const& buffers)
// optimization: reserve all the space for the string first
std::string result;
result.reserve(beast::buffer_size(buffers)); // beast version of net::buffer_size
result.reserve(beast::buffer_bytes(buffers)); // beast version of net::buffer_size
// iterate over each buffer in the sequence and append it to the string
for(auto it = net::buffer_sequence_begin(buffers); // returns an iterator to beginning of the sequence