boost::capy::circular_dynamic_buffer::circular_dynamic_buffer

Construct a circular buffer with initial readable bytes.

Synopsis

circular_dynamic_buffer(
    void* base,
    std::size_t capacity,
    std::size_t initial_size);

Exceptions

Name

Thrown on

std::invalid_argument

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 capacity.

Created with MrDocs