Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX > Class Template Reference

deserialization of CBOR, MessagePack, and UBJSON values More...

+ Collaboration diagram for nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >:

Public Member Functions

 __attribute__ ((__nonnull__(3))) bool sax_parse(const input_format_t format
 
 binary_reader (binary_reader &&)=default
 
 binary_reader (const binary_reader &)=delete
 
 binary_reader (InputAdapterType &&adapter) noexcept
 create a binary reader More...
 
binary_reader & operator= (binary_reader &&)=default
 
binary_reader & operator= (const binary_reader &)=delete
 

Public Attributes

std::size_t chars_read = 0
 the number of characters read
 
char_int_type current = std::char_traits<char_type>::eof()
 the current character
 
json_sax_t const bool const cbor_tag_handler_t bool InputIsLittleEndian
 
const bool is_little_endian = little_endianness()
 whether we can assume little endianness
 
json_sax_t * sax = nullptr
 the SAX parser
 
json_sax_t * sax_
 
json_sax_t const bool strict = true
 
json_sax_t const bool const cbor_tag_handler_t tag_handler
 

Detailed Description

template<typename BasicJsonType, typename InputAdapterType, typename SAX = json_sax_dom_parser<BasicJsonType>>
class nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >

deserialization of CBOR, MessagePack, and UBJSON values

Constructor & Destructor Documentation

◆ binary_reader()

template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::binary_reader ( InputAdapterType &&  adapter)
explicitnoexcept

create a binary reader

Parameters
[in]adapterinput adapter to read from

Member Function Documentation

◆ __attribute__()