deserialization of CBOR and MessagePack values
More...
deserialization of CBOR and MessagePack values
wpi::json::binary_reader::binary_reader |
( |
raw_istream & |
s | ) |
|
|
inlineexplicit |
create a binary reader
- Parameters
-
[in] | adapter | input adapter to read from |
static bool wpi::json::binary_reader::little_endianess |
( |
int |
num = 1 | ) |
|
|
inlinestaticnoexcept |
json wpi::json::binary_reader::parse_cbor |
( |
const bool |
strict | ) |
|
|
inline |
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 |
json wpi::json::binary_reader::parse_msgpack |
( |
const bool |
strict | ) |
|
|
inline |
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 |
json wpi::json::binary_reader::parse_ubjson |
( |
const bool |
strict | ) |
|
|
inline |
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:
- build/cppSource/wpiutil-cpp/sources/json_binary_reader.cpp