deserialization of CBOR and MessagePack values
More...
#include <binary_reader.hpp>
template<typename BasicJsonType>
class nlohmann::detail::binary_reader< BasicJsonType >
deserialization of CBOR and MessagePack values
◆ binary_reader()
template<typename BasicJsonType >
create a binary reader
- Parameters
-
[in] | adapter | input adapter to read from |
◆ little_endianess()
template<typename BasicJsonType >
|
inlinestaticconstexprnoexcept |
◆ parse_cbor()
template<typename BasicJsonType >
create a JSON value from CBOR input
- Parameters
-
[in] | strict | whether to expect the input to be consumed completed |
- Returns
- JSON value created from CBOR input
- Exceptions
-
parse_error.110 | if input ended unexpectedly or the end of file was not reached when strict was set to true |
parse_error.112 | if unsupported byte was read |
◆ parse_msgpack()
template<typename BasicJsonType >
create a JSON value from MessagePack input
- Parameters
-
[in] | strict | whether to expect the input to be consumed completed |
- Returns
- JSON value created from MessagePack input
- Exceptions
-
parse_error.110 | if input ended unexpectedly or the end of file was not reached when strict was set to true |
parse_error.112 | if unsupported byte was read |
◆ parse_ubjson()
template<typename BasicJsonType >
create a JSON value from UBJSON input
- Parameters
-
[in] | strict | whether to expect the input to be consumed completed |
- Returns
- JSON value created from UBJSON input
- Exceptions
-
parse_error.110 | if input ended unexpectedly or the end of file was not reached when strict was set to true |
parse_error.112 | if unsupported byte was read |
The documentation for this class was generated from the following file: