mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
Stronger buffer contract on flat_buffer and flat_static_buffer
Fixes #1513
This commit is contained in:
committed by
Mohammad Nejati
parent
9d5ee3fc43
commit
2216adc013
@@ -43,7 +43,7 @@ namespace beast {
|
|||||||
|
|
||||||
@li Buffer sequences representing the readable and writable
|
@li Buffer sequences representing the readable and writable
|
||||||
bytes, returned by @ref data and @ref prepare, will have
|
bytes, returned by @ref data and @ref prepare, will have
|
||||||
length one.
|
a type of net::const_buffer or net::mutable_buffer.
|
||||||
|
|
||||||
Upon construction, a maximum size for the buffer may be
|
Upon construction, a maximum size for the buffer may be
|
||||||
specified. If this limit is exceeded, the `std::length_error`
|
specified. If this limit is exceeded, the `std::length_error`
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
||||||
/** A dynamic buffer using a fixed size internal buffer.
|
/** A dynamic buffer using a fixed size internal buffer using no memory allocations.
|
||||||
|
|
||||||
A dynamic buffer encapsulates memory storage that may be
|
A dynamic buffer encapsulates memory storage that may be
|
||||||
automatically resized as required, where the memory is
|
automatically resized as required, where the memory is
|
||||||
@@ -37,7 +37,7 @@ namespace beast {
|
|||||||
|
|
||||||
@li Buffer sequences representing the readable and writable
|
@li Buffer sequences representing the readable and writable
|
||||||
bytes, returned by @ref data and @ref prepare, will have
|
bytes, returned by @ref data and @ref prepare, will have
|
||||||
length one.
|
a type of net::const_buffer or net::mutable_buffer.
|
||||||
|
|
||||||
@li Ownership of the underlying storage belongs to the
|
@li Ownership of the underlying storage belongs to the
|
||||||
derived class.
|
derived class.
|
||||||
@@ -245,11 +245,11 @@ private:
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
/** A <em>DynamicBuffer</em> with a fixed size internal buffer.
|
/** A <em>DynamicBuffer</em> with a fixed size internal buffer using no memory allocations.
|
||||||
|
|
||||||
Buffer sequences returned by @ref data and @ref prepare
|
Buffer sequences representing the readable and writable
|
||||||
will always be of length one.
|
bytes, returned by @ref data and @ref prepare, will have
|
||||||
This implements a dynamic buffer using no memory allocations.
|
a type of net::const_buffer or net::mutable_buffer.
|
||||||
|
|
||||||
@tparam N The number of bytes in the internal buffer.
|
@tparam N The number of bytes in the internal buffer.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user