boost::capy::circular_dynamic_buffer::circular_dynamic_buffer
Constructors
Synopses
Construct an empty circular buffer with zero capacity.
constexpr
circular_dynamic_buffer() = default;
Copy constructor.
constexpr
circular_dynamic_buffer(circular_dynamic_buffer const& other) = default;
Construct a circular buffer over existing storage.
circular_dynamic_buffer(
void* base,
std::size_t capacity) noexcept;
Construct a circular buffer with initial readable bytes.
circular_dynamic_buffer(
void* base,
std::size_t capacity,
std::size_t initial_size);
Exceptions
Name |
Thrown on |
|
if initial_size > capacity. |
Parameters
| Name | Description |
|---|---|
base |
Pointer to the storage. |
capacity |
Size of the storage in bytes. |
initial_size |
Number of bytes already present as readable. Must not exceed |
Created with MrDocs