boost::capy::flat_dynamic_buffer::flat_dynamic_buffer

Construct a flat buffer over existing storage.

Synopsis

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