Home
last modified time | relevance | path

Searched refs:binary_t (Results 1 – 25 of 30) sorted by relevance

12

/third_party/json/include/nlohmann/detail/input/
Djson_sax.hpp29 using binary_t = typename BasicJsonType::binary_t; typedef
80 virtual bool binary(binary_t& val) = 0;
161 using binary_t = typename BasicJsonType::binary_t; typedef in nlohmann::detail::json_sax_dom_parser
215 bool binary(binary_t& val) in binary()
335 using binary_t = typename BasicJsonType::binary_t; typedef in nlohmann::detail::json_sax_dom_callback_parser
390 bool binary(binary_t& val) in binary()
642 using binary_t = typename BasicJsonType::binary_t; typedef in nlohmann::detail::json_sax_acceptor
674 bool binary(binary_t& /*unused*/) in binary() argument
Dbinary_reader.hpp65 using binary_t = typename BasicJsonType::binary_t; typedef in nlohmann::detail::binary_reader
235 bool get_bson_binary(const NumberType len, binary_t& result) in get_bson_binary()
292 binary_t value; in parse_bson_element_internal()
550 binary_t b; in parse_cbor_internal()
762 binary_t b; in parse_cbor_internal()
770 … b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype)); in parse_cbor_internal()
777 … b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype)); in parse_cbor_internal()
784 … b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype)); in parse_cbor_internal()
791 … b.set_subtype(detail::conditional_static_cast<typename binary_t::subtype_type>(subtype)); in parse_cbor_internal()
990 bool get_cbor_binary(binary_t& result) in get_cbor_binary()
[all …]
/third_party/json/test/src/
Dunit-pointer_access.cpp63 CHECK(value.get_ptr<json::binary_t*>() == nullptr);
92 CHECK(value.get_ptr<const json::binary_t*>() == nullptr);
121 CHECK(value.get_ptr<json::binary_t*>() == nullptr);
150 CHECK(value.get_ptr<const json::binary_t*>() == nullptr);
179 CHECK(value.get_ptr<json::binary_t*>() == nullptr);
208 CHECK(value.get_ptr<const json::binary_t*>() == nullptr);
237 CHECK(value.get_ptr<json::binary_t*>() == nullptr);
266 CHECK(value.get_ptr<const json::binary_t*>() == nullptr);
295 CHECK(value.get_ptr<json::binary_t*>() == nullptr);
324 CHECK(value.get_ptr<const json::binary_t*>() == nullptr);
[all …]
Dunit-conversions.cpp1275 json::binary_t n_reference{{1, 2, 3}};
1280 json::binary_t b = j.get<json::binary_t>();
1313 CHECK_THROWS_WITH_AS(j_null.get<json::binary_t>(),
1316 CHECK_THROWS_WITH_AS(j_object.get<json::binary_t>(),
1319 CHECK_THROWS_WITH_AS(j_array.get<json::binary_t>(),
1322 CHECK_THROWS_WITH_AS(j_string.get<json::binary_t>(),
1325 CHECK_THROWS_WITH_AS(j_boolean.get<json::binary_t>(),
1329 CHECK_THROWS_WITH_AS(j_null_const.get<json::binary_t>(),
1332 CHECK_THROWS_WITH_AS(j_object_const.get<json::binary_t>(),
1335 CHECK_THROWS_WITH_AS(j_array_const.get<json::binary_t>(),
[all …]
Dunit-modifiers.cpp972 json::binary_t s = {{5, 6, 7, 8}};
1000 json::binary_t s1 = {{1, 2, 3, 4}};
Dunit-class_parser.cpp79 bool binary(json::binary_t& val) in binary()
185 bool binary(json::binary_t& /*val*/) override in binary() argument
/third_party/json/include/nlohmann/detail/meta/
Dis_sax.hpp75 using binary_t = typename BasicJsonType::binary_t; typedef
86 is_detected_exact<bool, binary_function_t, SAX, binary_t>::value &&
106 using binary_t = typename BasicJsonType::binary_t; typedef
131 is_detected_exact<bool, binary_function_t, SAX, binary_t>::value,
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dbinary.md5 static basic_json binary(const typename binary_t::container_type& init);
6 static basic_json binary(typename binary_t::container_type&& init);
9 static basic_json binary(const typename binary_t::container_type& init,
11 static basic_json binary(typename binary_t::container_type&& init,
39 Linear in the size of `init`; constant for `typename binary_t::container_type&& init` versions.
Dget_binary.md4 binary_t& get_binary();
6 const binary_t& get_binary() const;
Dget_ref.md18 …ned_t`](number_unsigned_t.md), [`number_float_t`](number_float_t.md), or [`binary_t`](binary_t.md).
Dget_ptr.md18 …ned_t`](number_unsigned_t.md), [`number_float_t`](number_float_t.md), or [`binary_t`](binary_t.md).
Dbinary_t.md1 # basic_json::binary_t
4 using binary_t = byte_container_with_subtype<BinaryType>;
48 type `#!cpp binary_t*` must be dereferenced.
Dget.md77 …ned_t`](number_unsigned_t.md), [`number_float_t`](number_float_t.md), or [`binary_t`](binary_t.md).
Dindex.md39 | `BinaryType` | type for binary arrays | [`binary_t`](binary_t.md) |
87 - [**binary_t**](binary_t.md) - type for binary arrays
/third_party/json/doc/mkdocs/docs/features/
Dbinary_values.md10 class json::binary_t {
19 "std::vector<uint8_t>" <|-- json::binary_t
22 …json` type. To store binary subtypes, the storage type is extended and exposed as `json::binary_t`:
25 auto binary = json::binary_t({0xCA, 0xFE, 0xBA, 0xBE});
26 auto binary_with_subtype = json::binary_t({0xCA, 0xFE, 0xBA, 0xBE}, 42);
44 As `json::binary_t` is subclassing `std::vector<std::uint8_t>`, all member functions are available:
51 JSON values can be constructed from `json::binary_t`:
64 Given a binary JSON value, the `binary_t` can be accessed by reference as via `get_binary()`:
/third_party/json/include/nlohmann/
Djson.hpp921 using binary_t = nlohmann::byte_container_with_subtype<BinaryType>; typedef in nlohmann::basic_json
983 binary_t* binary;
1028 binary = create<binary_t>(); in json_value()
1112 json_value(const typename binary_t::container_type& value) in json_value()
1114 binary = create<binary_t>(value); in json_value()
1118 json_value(typename binary_t::container_type&& value) in json_value()
1120 binary = create<binary_t>(std::move(value)); in json_value()
1124 json_value(const binary_t& value) in json_value()
1126 binary = create<binary_t>(value); in json_value()
1130 json_value(binary_t&& value) in json_value()
[all …]
/third_party/json/include/nlohmann/detail/conversions/
Dto_json.hpp84 static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b) in construct()
88 j.m_value = typename BasicJsonType::binary_t(b); in construct()
93 static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b) in construct()
97 j.m_value = typename BasicJsonType::binary_t(std::move(b)); in construct()
313 … !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
322 void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin) in to_json()
Dfrom_json.hpp248 !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
284 void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin) in from_json()
291 bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>(); in from_json()
/third_party/json/doc/examples/
Dswap__binary_t.cpp12 json::binary_t binary = {{4, 5, 6}}; in main()
Dsax_parse.cpp82 bool binary(json::binary_t& val) override in binary()
/third_party/json/single_include/nlohmann/
Djson.hpp4111 !std::is_same<ConstructibleArrayType, typename BasicJsonType::binary_t>::value&&
4147 void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin) in from_json()
4154 bin = *j.template get_ptr<const typename BasicJsonType::binary_t*>(); in from_json()
4610 static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b) in construct()
4614 j.m_value = typename BasicJsonType::binary_t(b); in construct()
4619 static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b) in construct()
4623 j.m_value = typename BasicJsonType::binary_t(std::move(b)); in construct()
4839 … !std::is_same<typename BasicJsonType::binary_t, CompatibleArrayType>::value&&
4848 void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin) in to_json()
5843 using binary_t = typename BasicJsonType::binary_t; typedef
[all …]
/third_party/json/doc/mkdocs/docs/features/types/
Dindex.md40 binary_t* binary
54 + <u>typedef</u> binary_t
104 using binary_t = nlohmann::byte_container_with_subtype<BinaryType>;
/third_party/json/include/nlohmann/detail/output/
Dbinary_writer.hpp31 using binary_t = typename BasicJsonType::binary_t; typedef in nlohmann::detail::binary_writer
1097 static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value) in calc_bson_binary_size()
1125 const binary_t& value) in write_bson_binary()
Dserializer.hpp46 using binary_char_t = typename BasicJsonType::binary_t::value_type;
/third_party/json/doc/mkdocs/docs/features/parsing/
Dsax_interface.md17 + {abstract} bool binary(binary_t& val)

12