...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A pointer to a contiguous area of memory of size
octets, else nullptr
.
void* data = nullptr;
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.
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
.