boost::burl::request_head::reserve

Reserve storage.

Synopsis

void
reserve(
    std::size_t bytes,
    std::size_t count);

Description

Ensures the field section can grow to bytes bytes and the number of fields to count without reallocating. Has no effect if the current allocation is already sufficient.

The request line shares the allocation with the field section, so a request line larger than the one currently stored may still reallocate.

All views are invalidated when a reallocation occurs.

Exception Safety

Strong guarantee. Calls to allocate may throw.

Exceptions

Name

Thrown on

std::length_error

bytes exceeds max_buffer_size, or count exceeds max_field_count.

Parameters

Name

Description

bytes

The serialized field‐section size, as returned by fields_base::buffer().size().

count

The number of fields.

Created with MrDocs