|
bool | parse_bson_internal () |
| Reads in a BSON-object and passes it to the SAX-parser. More...
|
|
bool | get_bson_cstr (string_t &result) |
| Parses a C-style string from the BSON input. More...
|
|
template<typename NumberType > |
bool | get_bson_string (const NumberType len, string_t &result) |
| Parses a zero-terminated string of length len from the BSON input. More...
|
|
bool | parse_bson_element_internal (const int element_type, const std::size_t element_type_parse_position) |
| Read a BSON document element of the given element_type. More...
|
|
bool | parse_bson_element_list (const bool is_array) |
| Read a BSON element list (as specified in the BSON-spec) More...
|
|
bool | parse_bson_array () |
| Reads an array from the BSON input and passes it to the SAX-parser. More...
|
|
bool | parse_cbor_internal (const bool get_char=true) |
|
bool | get_cbor_string (string_t &result) |
| reads a CBOR string More...
|
|
bool | get_cbor_array (const std::size_t len) |
|
bool | get_cbor_object (const std::size_t len) |
|
bool | parse_msgpack_internal () |
|
bool | get_msgpack_string (string_t &result) |
| reads a MessagePack string More...
|
|
bool | get_msgpack_array (const std::size_t len) |
|
bool | get_msgpack_object (const std::size_t len) |
|
bool | parse_ubjson_internal (const bool get_char=true) |
|
bool | get_ubjson_string (string_t &result, const bool get_char=true) |
| reads a UBJSON string More...
|
|
bool | get_ubjson_size_value (std::size_t &result) |
|
bool | get_ubjson_size_type (std::pair< std::size_t, int > &result) |
| determine the type and size for a container More...
|
|
bool | get_ubjson_value (const int prefix) |
|
bool | get_ubjson_array () |
|
bool | get_ubjson_object () |
|
int | get () |
| get next character from the input More...
|
|
int | get_ignore_noop () |
|
template<typename NumberType , bool InputIsLittleEndian = false> |
bool | get_number (const input_format_t format, NumberType &result) |
|
template<typename NumberType > |
bool | get_string (const input_format_t format, const NumberType len, string_t &result) |
| create a string by reading characters from the input More...
|
|
bool | unexpect_eof (const input_format_t format, const char *context) const |
|
std::string | get_token_string () const |
|
std::string | exception_message (const input_format_t format, const std::string &detail, const std::string &context) const |
|
template<typename BasicJsonType, typename SAX = json_sax_dom_parser<BasicJsonType>>
class nlohmann::detail::binary_reader< BasicJsonType, SAX >
deserialization of CBOR, MessagePack, and UBJSON values
Definition at line 3543 of file json.hpp.
template<typename BasicJsonType , 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 std::char_traits<char>::eof()
in that case.
- Returns
- character read from the input
Definition at line 5321 of file json.hpp.
template<typename BasicJsonType , 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.
- Parameters
-
[out] | result | pair of the size and the type |
- Returns
- whether pair creation completed
Definition at line 5037 of file json.hpp.
template<typename BasicJsonType , 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).
- Parameters
-
[in] | is_array | Determines if the element list being read is to be treated as an object (is_array == false), or as an array (is_array == true). |
- Returns
- whether a valid BSON-object/array was passed to the SAX parser
Definition at line 3798 of file json.hpp.