returnsax->parse_error(element_type_parse_position,element_type_str,parse_error::create(114,element_type_parse_position,"Unsupported BSON record type 0x"+element_type_str));
returnsax->parse_error(element_type_parse_position,std::string(cr),parse_error::create(114,element_type_parse_position,"Unsupported BSON record type 0x"+std::string(cr)));
}
}
}
/*!
@brief Read a BSON element list (as specified in the BSON-spec) from the input
and passes it to the SAX-parser.
The same binary layout is used for objects and arrays, hence it must
be indicated with the argument @a is_array which one is expected
(true --> array, false --> object).
@param is_array Determines if the element list being read is to be treated as
an object (@a is_array == false), or as an array (@a is_array == true).
@brief Read a BSON element list (as specified in the BSON-spec)
The same binary layout is used for objects and arrays, hence it must be
indicated with the argument @a is_array which one is expected
(true --> array, false --> object).
@param[in] is_array Determines if the element list being read is to be
treated as an object (@a is_array == false), or as an
array (@a is_array == true).
@return whether a valid BSON-object/array was passed to the SAX parser
returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,exception_message(input_format_t::cbor,"expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x"+last_token,"string")));
}
}
}
/*!
@param[in] get_char whether a new character should be retrieved from the
input (true, default) or whether the last read
character should be considered instead
@return whether a valid UBJSON value was passed to the SAX parser
returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,exception_message(input_format_t::cbor,"expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x"+last_token,"string")));
string_ts;
returnget_msgpack_string(s)andsax->string(s);
}
}
}
/*!
@param[in] len the length of the array or std::size_t(-1) for an
returnsax->parse_error(element_type_parse_position,element_type_str,parse_error::create(114,element_type_parse_position,"Unsupported BSON record type 0x"+element_type_str));
returnsax->parse_error(element_type_parse_position,std::string(cr),parse_error::create(114,element_type_parse_position,"Unsupported BSON record type 0x"+std::string(cr)));
}
}
}
/*!
@brief Read a BSON element list (as specified in the BSON-spec) from the input
and passes it to the SAX-parser.
The same binary layout is used for objects and arrays, hence it must
be indicated with the argument @a is_array which one is expected
(true --> array, false --> object).
@param is_array Determines if the element list being read is to be treated as
an object (@a is_array == false), or as an array (@a is_array == true).
@brief Read a BSON element list (as specified in the BSON-spec)
The same binary layout is used for objects and arrays, hence it must be
indicated with the argument @a is_array which one is expected
(true --> array, false --> object).
@param[in] is_array Determines if the element list being read is to be
treated as an object (@a is_array == false), or as an
array (@a is_array == true).
@return whether a valid BSON-object/array was passed to the SAX parser
returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,exception_message(input_format_t::cbor,"expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x"+last_token,"string")));
returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,exception_message(input_format_t::cbor,"expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x"+last_token,"string")));