...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Read the next buffer of serialized JSON.
string_view read( char* dest, std::size_t size);
This function attempts to fill the caller provided buffer starting at
dest
with up to size
characters of the serialized JSON
that represents the value. If the buffer is not large enough, multiple
calls may be required.
If serialization completes during this call; that is, that all of the
characters belonging to the serialized value have been written to caller-provided
buffers, the function done
will return true
.
this->done() == false
Linear in size
.
Basic guarantee. Calls to memory_resource::allocate
may throw.
A string_view
containing the characters written, which may be less than size
.
Name |
Description |
---|---|
|
A pointer to valid memory of at least |
|
The maximum number of characters to write to the memory pointed
to by |