forked from boostorg/beast
Rename to buffer_bytes
This commit is contained in:
1 parent
6ccdcdf51d
commit
9f2b0ce1db
62 files changed
+206
-258
No files matched your search
@@ -157,7 +157,7 @@ public:
|
||||
parsegrind(ConstBufferSequence const& buffers,
|
||||
Test const& test, bool skip = false)
|
||||
{
|
||||
auto const size = buffer_size(buffers);
|
||||
auto const size = buffer_bytes(buffers);
|
||||
for(std::size_t i = 1; i < size - 1; ++i)
|
||||
{
|
||||
Parser p;
|
||||
@@ -175,7 +175,7 @@ public:
|
||||
n = p.put(cb, ec);
|
||||
if(! BEAST_EXPECTS(! ec, ec.message()))
|
||||
continue;
|
||||
if(! BEAST_EXPECT(n == buffer_size(cb)))
|
||||
if(! BEAST_EXPECT(n == buffer_bytes(cb)))
|
||||
continue;
|
||||
if(p.need_eof())
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
operator()(error_code&, ConstBufferSequence const& buffers)
|
||||
{
|
||||
buffer.commit(net::buffer_copy(
|
||||
buffer.prepare(buffer_size(buffers)),
|
||||
buffer.prepare(buffer_bytes(buffers)),
|
||||
buffers));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
if(ec)
|
||||
return;
|
||||
if(p.need_eof() &&
|
||||
buffer_size(cb) == 0)
|
||||
buffer_bytes(cb) == 0)
|
||||
{
|
||||
p.put_eof(ec);
|
||||
if(ec)
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
operator()(error_code&,
|
||||
ConstBufferSequence const& buffers)
|
||||
{
|
||||
size = buffer_size(buffers);
|
||||
size = buffer_bytes(buffers);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ struct span_body_test
|
||||
BEAST_EXPECTS(! ec, ec.message());
|
||||
if(! BEAST_EXPECT(buf != boost::none))
|
||||
return;
|
||||
BEAST_EXPECT(buffer_size(buf->first) == 3);
|
||||
BEAST_EXPECT(buffer_bytes(buf->first) == 3);
|
||||
BEAST_EXPECT(! buf->second);
|
||||
}
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user