Public Member Functions |
Private Types |
Private Member Functions |
Private Attributes |
Static Private Attributes |
List of all members
nlohmann::json_abi_v3_11_3::detail::binary_reader< BasicJsonType, InputAdapterType, SAX > Class Template Reference deserialization of CBOR, MessagePack, and UBJSON values More...
Collaboration diagram for nlohmann::json_abi_v3_11_3::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >:
![]()
Detailed Descriptiontemplate<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>> class nlohmann::json_abi_v3_11_3::detail::binary_reader< BasicJsonType, InputAdapterType, SAX > deserialization of CBOR, MessagePack, and UBJSON values Member Typedef Documentation◆ binary_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ bjd_type
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ char_int_type
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ char_type
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ json_sax_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ number_float_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ number_integer_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ number_unsigned_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ string_t
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Constructor & Destructor Documentation◆ binary_reader() [1/3]
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ binary_reader() [2/3]
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ binary_reader() [3/3]
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ ~binary_reader()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Member Function Documentation◆ exception_message()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 12058 of file json.hpp. References JSON_ASSERT. ◆ get()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
get next character from the input This function provides the interface to the used input adapter. It does not throw in case the input reached EOF, but returns a -'ve valued
◆ get_binary()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
template<typename NumberType >
create a byte array by reading bytes from the input
Definition at line 12008 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_bson_binary()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
template<typename NumberType >
Parses a byte array input of length len from the BSON input.
Definition at line 9389 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ get_bson_cstr()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Parses a C-style string from the BSON input.
Definition at line 9337 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_bson_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
template<typename NumberType >
Parses a zero-terminated string of length len from the BSON input.
Definition at line 9367 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_cbor_array()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 10246 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_cbor_binary()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
reads a CBOR byte array This function first reads starting bytes to determine the expected byte array length and then copies this number of bytes into the byte array. Additionally, CBOR's byte arrays with indefinite lengths are supported.
Definition at line 10151 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_cbor_object()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 10284 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ get_cbor_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
reads a CBOR string This function first reads starting bytes to determine the expected string length and then copies this number of bytes into a string. Additionally, CBOR's strings with indefinite lengths are supported.
Definition at line 10055 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_ignore_noop()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11905 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(). ◆ get_msgpack_array()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 10915 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ get_msgpack_binary()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
reads a MessagePack byte array This function first reads starting bytes to determine the expected byte array length and then copies this number of bytes into a byte array.
◆ get_msgpack_object()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 10937 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ get_msgpack_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
reads a MessagePack string This function first reads starting bytes to determine the expected string length and then copies this number of bytes into a string.
Definition at line 10721 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ get_number()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
template<typename NumberType , bool InputIsLittleEndian = false>
Definition at line 11932 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
template<typename NumberType >
create a string by reading characters from the input
Definition at line 11975 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_token_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ get_ubjson_array()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11626 of file json.hpp. References JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ get_ubjson_high_precision_number()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11817 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_ubjson_ndarray_size()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11088 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ get_ubjson_object()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11734 of file json.hpp. References JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ get_ubjson_size_type()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
determine the type and size for a container In the optimized UBJSON format, a type and a size can be provided to allow for a more compact representation.
Definition at line 11376 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_ubjson_size_value()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11153 of file json.hpp. References JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ get_ubjson_string()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
reads a UBJSON string This function is either called after reading the 'S' byte explicitly indicating a string, or in case of an object key where the 'S' byte can be left out.
Definition at line 10993 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and JSON_HEDLEY_UNLIKELY. ◆ get_ubjson_value()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 11443 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_ASSERT, and JSON_HEDLEY_UNLIKELY. ◆ operator=() [1/2]
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ operator=() [2/2]
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ parse_bson_array()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Reads an array from the BSON input and passes it to the SAX-parser.
Definition at line 9534 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ parse_bson_element_internal()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Read a BSON document element of the given element_type.
Definition at line 9416 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), and nlohmann::json_abi_v3_11_3::detail::value. ◆ parse_bson_element_list()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
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 is_array which one is expected (true --> array, false --> object).
Definition at line 9496 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::key. ◆ parse_bson_internal()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Reads in a BSON-object and passes it to the SAX-parser.
Definition at line 9312 of file json.hpp. References JSON_HEDLEY_UNLIKELY. ◆ parse_cbor_internal()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 9564 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_ASSERT, and JSON_HEDLEY_UNLIKELY. ◆ parse_msgpack_internal()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 10340 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(). ◆ parse_ubjson_internal()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ sax_parse()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 9249 of file json.hpp. References nlohmann::json_abi_v3_11_3::detail::get(), JSON_ASSERT, JSON_HEDLEY_UNLIKELY, and nlohmann::json_abi_v3_11_3::detail::strict. Referenced by nlohmann::json_abi_v3_11_3::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::sax_parse(), nlohmann::json_abi_v3_11_3::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::sax_parse(), and nlohmann::json_abi_v3_11_3::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::sax_parse(). ◆ unexpect_eof()
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Definition at line 12032 of file json.hpp. References JSON_HEDLEY_UNLIKELY. Member Data Documentation◆ bjd_optimized_type_markers
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ bjd_types_map
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
Initial value:
=
make_array<bjd_type>( bjd_type{'C', "char"}, bjd_type{'D', "double"}, bjd_type{'I', "int16"}, bjd_type{'L', "int64"}, bjd_type{'M', "uint64"}, bjd_type{'U', "uint8"}, bjd_type{'d', "single"}, bjd_type{'i', "int8"}, bjd_type{'l', "int32"}, bjd_type{'m', "uint32"}, bjd_type{'u', "uint16"})
std::pair< char_int_type, string_t > bjd_type Definition json.hpp:12139 ◆ chars_read
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ current
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ ia
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ input_format
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ is_little_endian
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
◆ npos
template<typename BasicJsonType , typename InputAdapterType , typename SAX >
◆ sax
template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
The documentation for this class was generated from the following file: Generated on Sun Apr 6 2025 11:10:38 for FlexibleSUSY by |