Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
http::buffer_body::value_type::data

A pointer to a contiguous area of memory of http::buffer_body::value_type::size octets, else nullptr.

Synopsis
void * data = nullptr;
Description
When Serializing

If this is nullptr and more is true, the error http::need_buffer will be returned from http::serializer::get Otherwise, the serializer will use the memory pointed to by data having size octets of valid storage as the next buffer representing the body.

When Parsing

If this is nullptr, the error http::need_buffer will be returned from http::basic_parser::put. Otherwise, the parser will store body octets into the memory pointed to by data having size octets of valid storage. After octets are stored, the data and size members are adjusted: data is incremented to point to the next octet after the data written, while size is decremented to reflect the remaining space at the memory location pointed to by data.


PrevUpHomeNext