Skip to content

Instantly share code, notes, and snippets.

@vinniefalco
Created November 15, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinniefalco/28c688fcba35c1a8de8e0e4dd97dc8ff to your computer and use it in GitHub Desktop.
Save vinniefalco/28c688fcba35c1a8de8e0e4dd97dc8ff to your computer and use it in GitHub Desktop.
/** Parse JSON.
This function begins or continues parsing the JSON
in the specified buffer. The algorithm processes
characters starting from the beginning until one
of the following conditions is met:
@li All of the characters in the buffer have been
parsed, or
@li Some of the characters in the buffer have been
parsed and the JSON is complete, or
@li A parsing error occurs.
@param data A pointer to a buffer of `size`
characters to parse.
@param size The number of characters pointed to
by `data`.
@param ec Set to the error, if any occurred.
@return The number of characters successfully
parsed, which may be smaller than `size`.
*/
BOOST_JSON_DECL
std::size_t
write_some(
char const* data,
std::size_t size,
error_code& ec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment