...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
serializer( storage_ptr sp, unsigned char* buf = nullptr, std::size_t buf_size = 0, serialize_options const& opts = {});
This constructs a serializer with no value. The value may be set later
by calling reset
. If serialization is attempted
with no value, the output is as if a null value is serialized.
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
A pointer to the |
|
An optional static buffer to use for temporary storage when producing partial output. |
|
The number of bytes of valid memory pointed to by |
|
The options for the serializer. If this parameter is omitted, the serializer will output only standard JSON. |