8623 {
8624 if (JSON_HEDLEY_UNLIKELY(len < 0))
8625 {
8628 }
8629
8630
8631 std::uint8_t subtype{};
8632 get_number<std::uint8_t>(input_format_t::bson, subtype);
8633 result.set_subtype(subtype);
8634 return get_binary(input_format_t::bson, len, result);
8635 }
bool get_binary(const input_format_t format, const NumberType len, binary_t &result)
create a byte array by reading bytes from the input
std::string get_token_string() const
std::string exception_message(const input_format_t format, const std::string &detail, const std::string &context) const
std::size_t chars_read
the number of characters read
json_sax_t * sax
the SAX parser
static parse_error create(int id_, const position_t &pos, const std::string &what_arg, const BasicJsonType &context)
create a parse error exception