boost::capy::flat_dynamic_buffer::flat_dynamic_buffer

Constructors

Synopses

Construct an empty flat buffer with zero capacity.

constexpr
flat_dynamic_buffer() = default;

Copy constructor.

constexpr
flat_dynamic_buffer(flat_dynamic_buffer const& other) = default;

Construct a flat buffer over existing storage.

flat_dynamic_buffer(
    void* data,
    std::size_t capacity,
    std::size_t initial_size = 0);

Exceptions

Name

Thrown on

std::invalid_argument

if initial_size > capacity.

Parameters

Name Description

data

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