Home
last modified time | relevance | path

Searched refs:bson (Results 1 - 8 of 8) sorted by relevance

/third_party/json/tests/src/
H A Dunit-bson.cpp333 // directly encoding uint64 is not supported in bson (only for timestamp values)
533 // directly encoding uint64 is not supported in bson (only for timestamp values)
742 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
758 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
780 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
795 CHECK(!json::sax_parse(incomplete_bson, &scp, json::input_format_t::bson));
805 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson));
816 CHECK(!json::sax_parse(bson_vec, &scp, json::input_format_t::bson));
842 std::vector<std::uint8_t> bson = variable
851 CHECK_THROWS_WITH_AS(_ = json::from_bson(bson), "[jso
909 const auto bson = json::to_bson(j); global() variable
977 const auto bson = json::to_bson(j); global() variable
1034 const auto bson = json::to_bson(j); global() variable
1091 const auto bson = json::to_bson(j); global() variable
1150 const auto bson = json::to_bson(j); global() variable
[all...]
/third_party/json/include/nlohmann/detail/input/
H A Dbinary_reader.hpp115 case input_format_t::bson: in sax_parse()
171 get_number<std::int32_t, true>(input_format_t::bson, document_size); in parse_bson_internal()
199 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring"))) in get_bson_cstr()
229 exception_message(input_format_t::bson, concat("string length must be at least 1, is ", std::to_string(len)), "string"), nullptr)); in get_bson_string()
232 return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof(); in get_bson_string()
251 exception_message(input_format_t::bson, concat("byte array length cannot be negative, is ", std::to_string(len)), "binary"), nullptr)); in get_bson_binary()
256 get_number<std::uint8_t>(input_format_t::bson, subtype); in get_bson_binary()
259 return get_binary(input_format_t::bson, len, result); in get_bson_binary()
280 return get_number<double, true>(input_format_t::bson, number) && sax->number_float(static_cast<number_float_t>(number), ""); in parse_bson_element_internal()
287 return get_number<std::int32_t, true>(input_format_t::bson, le in parse_bson_element_internal()
[all...]
H A Dinput_adapters.hpp34 enum class input_format_t { json, cbor, msgpack, ubjson, bson, bjdata }; member in detail::input_format_t
/third_party/json/include/nlohmann/
H A Djson.hpp4534 const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::bson).sax_parse(input_format_t::bson, &sdp, strict);
4549 const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::bson).sax_parse(input_format_t::bson, &sdp, strict);
4573 const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::bson).sax_parse(input_format_t::bson, &sdp, strict);
/third_party/json/
H A DMakefile85 find tests/data -size -5k -name *.bson | xargs -I{} cp "{}" fuzz-testing/testcases
/third_party/json/single_include/nlohmann/
H A Djson.hpp6103 enum class input_format_t { json, cbor, msgpack, ubjson, bson, bjdata }; member in detail::input_format_t
9189 case input_format_t::bson:
9245 get_number<std::int32_t, true>(input_format_t::bson, document_size);
9273 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
9303 exception_message(input_format_t::bson, concat("string length must be at least 1, is ", std::to_string(len)), "string"), nullptr));
9306 return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
9325 exception_message(input_format_t::bson, concat("byte array length cannot be negative, is ", std::to_string(len)), "binary"), nullptr));
9330 get_number<std::uint8_t>(input_format_t::bson, subtype);
9333 return get_binary(input_format_t::bson, len, result);
9354 return get_number<double, true>(input_format_t::bson, numbe
[all...]
/third_party/json/tests/abi/include/nlohmann/
H A Djson_v3_10_5.hpp5233 enum class input_format_t { json, cbor, msgpack, ubjson, bson };
8277 case input_format_t::bson:
8332 get_number<std::int32_t, true>(input_format_t::bson, document_size);
8360 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring")))
8389 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType()));
8392 return get_string(input_format_t::bson, len - static_cast<NumberType>(1), result) && get() != std::char_traits<char_type>::eof();
8410 return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"), BasicJsonType()));
8415 get_number<std::uint8_t>(input_format_t::bson, subtype);
8418 return get_binary(input_format_t::bson, len, result);
8439 return get_number<double, true>(input_format_t::bson, numbe
[all...]
/third_party/json/docs/docset/
H A DdocSet.sql168 INSERT INTO searchIndex(name, type, path) VALUES ('Binary Formats: BSON', 'Guide', 'features/binary_formats/bson/index.html');

Completed in 60 milliseconds