| /third_party/json/docs/mkdocs/docs/api/basic_json/ |
| D | get_binary.md | 1 # <small>nlohmann::basic_json::</small>get_binary 4 binary_t& get_binary(); 6 const binary_t& get_binary() const; 34 --8<-- "examples/get_binary.cpp" 40 --8<-- "examples/get_binary.output"
|
| D | index.md | 183 - [**get_binary**](get_binary.md) - get a binary value
|
| /third_party/json/include/nlohmann/detail/ |
| D | hash.hpp | 111 auto seed = combine(type, j.get_binary().size()); in hash() 112 const auto h = std::hash<bool> {}(j.get_binary().has_subtype()); in hash() 114 seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype())); in hash() 115 for (const auto byte : j.get_binary()) in hash()
|
| /third_party/json/include/nlohmann/detail/input/ |
| D | binary_reader.hpp | 259 return get_binary(input_format_t::bson, len, result); in get_bson_binary() 1042 … return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result); in get_cbor_binary() 1049 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 1056 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 1063 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 1070 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 1675 get_binary(input_format_t::msgpack, len, result); in get_msgpack_binary() 1682 get_binary(input_format_t::msgpack, len, result); in get_msgpack_binary() 1689 get_binary(input_format_t::msgpack, len, result); in get_msgpack_binary() 1698 get_binary(input_format_t::msgpack, len, result) && in get_msgpack_binary() [all …]
|
| /third_party/json/tests/src/ |
| D | unit-conversions.cpp | 1161 auto& b = j.get_binary(); 1168 const auto& b = j_const.get_binary(); 1218 CHECK_THROWS_WITH_AS(j_null.get_binary(), 1221 CHECK_THROWS_WITH_AS(j_object.get_binary(), 1224 CHECK_THROWS_WITH_AS(j_array.get_binary(), 1227 CHECK_THROWS_WITH_AS(j_string.get_binary(), 1230 CHECK_THROWS_WITH_AS(j_boolean.get_binary(), 1234 CHECK_THROWS_WITH_AS(j_null_const.get_binary(), 1237 CHECK_THROWS_WITH_AS(j_object_const.get_binary(), 1240 CHECK_THROWS_WITH_AS(j_array_const.get_binary(), [all …]
|
| D | unit-udt.cpp | 756 CHECK(cj.get_binary().subtype() == 42); 757 std::vector<std::uint8_t> cv = cj.get_binary(); 758 std::vector<std::uint8_t> v = j.get_binary();
|
| D | unit-cbor.cpp | 2401 …tor<uint8_t> {}, 0x42)), true, true, json::cbor_tag_handler_t::ignore).get_binary().has_subtype()); 2402 …ctor<uint8_t> {}, 0x42)), true, true, json::cbor_tag_handler_t::store).get_binary().subtype() == 0… 2405 …tor<uint8_t> {}, 1000)), true, true, json::cbor_tag_handler_t::ignore).get_binary().has_subtype()); 2406 …ctor<uint8_t> {}, 1000)), true, true, json::cbor_tag_handler_t::store).get_binary().subtype() == 1… 2409 …r<uint8_t> {}, 394216)), true, true, json::cbor_tag_handler_t::ignore).get_binary().has_subtype()); 2410 …or<uint8_t> {}, 394216)), true, true, json::cbor_tag_handler_t::store).get_binary().subtype() == 3… 2413 …nt8_t> {}, 8589934590)), true, true, json::cbor_tag_handler_t::ignore).get_binary().has_subtype()); 2414 …int8_t> {}, 8589934590)), true, true, json::cbor_tag_handler_t::store).get_binary().subtype() == 8… 2665 CHECK(!jb["binary"].get_binary().has_subtype());
|
| D | unit-msgpack.cpp | 1154 j.get_binary().set_subtype(subtype); 1229 j.get_binary().set_subtype(subtype); 1265 j.get_binary().set_subtype(subtype);
|
| /third_party/json/docs/examples/ |
| D | get_binary.cpp | 15 … std::cout << "type: " << j.type_name() << ", subtype: " << j.get_binary().subtype() << std::endl; in main()
|
| D | binary.cpp | 15 … std::cout << "type: " << j.type_name() << ", subtype: " << j.get_binary().subtype() << std::endl; in main()
|
| /third_party/json/docs/mkdocs/docs/features/ |
| D | binary_values.md | 70 Given a binary JSON value, the `binary_t` can be accessed by reference as via `get_binary()`: 73 j.get_binary().has_subtype(); // returns true 74 j.get_binary().size(); // returns 4 84 j3.get_binary().has_subtype(); // returns false 85 j3.get_binary().subtype(); // returns std::uint64_t(-1) as j3 has no subtype
|
| /third_party/json/tests/abi/include/nlohmann/ |
| D | json_v3_10_5.hpp | 5167 auto seed = combine(type, j.get_binary().size()); in hash() 5168 const auto h = std::hash<bool> {}(j.get_binary().has_subtype()); in hash() 5170 seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype())); in hash() 5171 for (const auto byte : j.get_binary()) in hash() 8418 return get_binary(input_format_t::bson, len, result); in get_bson_binary() 9195 … return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result); in get_cbor_binary() 9202 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 9209 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 9216 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 9223 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() [all …]
|
| /third_party/json/single_include/nlohmann/ |
| D | json.hpp | 6021 auto seed = combine(type, j.get_binary().size()); in hash() 6022 const auto h = std::hash<bool> {}(j.get_binary().has_subtype()); in hash() 6024 seed = combine(seed, static_cast<std::size_t>(j.get_binary().subtype())); in hash() 6025 for (const auto byte : j.get_binary()) in hash() 9333 return get_binary(input_format_t::bson, len, result); in get_bson_binary() 10116 … return get_binary(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result); in get_cbor_binary() 10123 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 10130 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 10137 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() 10144 get_binary(input_format_t::cbor, len, result); in get_cbor_binary() [all …]
|
| /third_party/json/include/nlohmann/ |
| D | json.hpp | 1891 binary_t& get_binary() in get_binary() function in basic_json 1903 const binary_t& get_binary() const in get_binary() function in basic_json
|
| /third_party/json/ |
| D | README.md | 1092 auto& binary = j.get_binary();
|