| Home | Libraries | People | FAQ | More

##### http::buffer_body::value_type::data

A pointer to a contiguous area of memory of `size` octets, else `nullptr`.

###### Synopsis

    void* data = nullptr;

###### Description

###### When Serializing

If this is `nullptr` and `more` is `true`, the error `error::need_buffer` will be returned from `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 `error::need_buffer` will be returned from `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`.