Crossfire Server, Trunk
|
serialization to CBOR and MessagePack values More...
#include <json.hpp>
Public Member Functions | |
binary_writer (output_adapter_t< CharType > adapter) | |
create a binary writer More... | |
void | write_bson (const BasicJsonType &j) |
void | write_cbor (const BasicJsonType &j) |
void | write_msgpack (const BasicJsonType &j) |
void | write_ubjson (const BasicJsonType &j, const bool use_count, const bool use_type, const bool add_prefix=true) |
Static Public Member Functions | |
template<typename InputCharType , typename C = CharType, enable_if_t< std::is_signed< C >::value &&std::is_signed< char >::value &&std::is_same< char, typename std::remove_cv< InputCharType >::type >::value > * = nullptr> | |
static constexpr CharType | to_char_type (InputCharType x) noexcept |
template<typename C = CharType, enable_if_t< std::is_signed< C >::value &&std::is_signed< char >::value > * = nullptr> | |
static constexpr CharType | to_char_type (std::uint8_t x) noexcept |
template<typename C = CharType, enable_if_t< std::is_signed< C >::value &&std::is_unsigned< char >::value > * = nullptr> | |
static CharType | to_char_type (std::uint8_t x) noexcept |
template<typename C = CharType, enable_if_t< std::is_unsigned< C >::value > * = nullptr> | |
static constexpr CharType | to_char_type (std::uint8_t x) noexcept |
Private Types | |
using | binary_t = typename BasicJsonType::binary_t |
using | number_float_t = typename BasicJsonType::number_float_t |
using | string_t = typename BasicJsonType::string_t |
Private Member Functions | |
CharType | ubjson_prefix (const BasicJsonType &j) const noexcept |
determine the type prefix of container values More... | |
void | write_bson_array (const string_t &name, const typename BasicJsonType::array_t &value) |
Writes a BSON element with key name and array value. More... | |
void | write_bson_binary (const string_t &name, const binary_t &value) |
Writes a BSON element with key name and binary value value. More... | |
void | write_bson_boolean (const string_t &name, const bool value) |
Writes a BSON element with key name and boolean value value. More... | |
void | write_bson_double (const string_t &name, const double value) |
Writes a BSON element with key name and double value value. More... | |
void | write_bson_element (const string_t &name, const BasicJsonType &j) |
Serializes the JSON value j to BSON and associates it with the key name. More... | |
void | write_bson_entry_header (const string_t &name, const std::uint8_t element_type) |
Writes the given element_type and name to the output adapter. More... | |
void | write_bson_integer (const string_t &name, const std::int64_t value) |
Writes a BSON element with key name and integer value. More... | |
void | write_bson_null (const string_t &name) |
Writes a BSON element with key name and null value. More... | |
void | write_bson_object (const typename BasicJsonType::object_t &value) |
void | write_bson_object_entry (const string_t &name, const typename BasicJsonType::object_t &value) |
Writes a BSON element with key name and object value. More... | |
void | write_bson_string (const string_t &name, const string_t &value) |
Writes a BSON element with key name and string value value. More... | |
void | write_bson_unsigned (const string_t &name, const BasicJsonType &j) |
Writes a BSON element with key name and unsigned value. More... | |
void | write_compact_float (const number_float_t n, detail::input_format_t format) |
template<typename NumberType , bool OutputIsLittleEndian = false> | |
void | write_number (const NumberType n) |
template<typename NumberType , typename std::enable_if< std::is_floating_point< NumberType >::value, int >::type = 0> | |
void | write_number_with_ubjson_prefix (const NumberType n, const bool add_prefix) |
template<typename NumberType , typename std::enable_if< std::is_unsigned< NumberType >::value, int >::type = 0> | |
void | write_number_with_ubjson_prefix (const NumberType n, const bool add_prefix) |
template<typename NumberType , typename std::enable_if< std::is_signed< NumberType >::value &&!std::is_floating_point< NumberType >::value, int >::type = 0> | |
void | write_number_with_ubjson_prefix (const NumberType n, const bool add_prefix) |
Static Private Member Functions | |
static std::size_t | calc_bson_array_size (const typename BasicJsonType::array_t &value) |
static std::size_t | calc_bson_binary_size (const typename BasicJsonType::binary_t &value) |
static std::size_t | calc_bson_element_size (const string_t &name, const BasicJsonType &j) |
Calculates the size necessary to serialize the JSON value j with its name. More... | |
static std::size_t | calc_bson_entry_header_size (const string_t &name, const BasicJsonType &j) |
static std::size_t | calc_bson_integer_size (const std::int64_t value) |
static std::size_t | calc_bson_object_size (const typename BasicJsonType::object_t &value) |
Calculates the size of the BSON serialization of the given JSON-object j. More... | |
static std::size_t | calc_bson_string_size (const string_t &value) |
static constexpr std::size_t | calc_bson_unsigned_size (const std::uint64_t value) noexcept |
static constexpr CharType | get_cbor_float_prefix (double) |
static constexpr CharType | get_cbor_float_prefix (float) |
static constexpr CharType | get_msgpack_float_prefix (double) |
static constexpr CharType | get_msgpack_float_prefix (float) |
static constexpr CharType | get_ubjson_float_prefix (double) |
static constexpr CharType | get_ubjson_float_prefix (float) |
Private Attributes | |
const bool | is_little_endian = little_endianess() |
whether we can assume little endianess More... | |
output_adapter_t< CharType > | oa = nullptr |
the output More... | |
serialization to CBOR and MessagePack values
|
private |
|
private |
|
private |
|
inlineexplicit |
create a binary writer
[in] | adapter | output adapter to write to |
Definition at line 13588 of file json.hpp.
References JSON_ASSERT, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa.
|
inlinestaticprivate |
Definition at line 14630 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size(), rotate-tower::result, and nlohmann::to_string().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array().
|
inlinestaticprivate |
Definition at line 14645 of file json.hpp.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size().
|
inlinestaticprivate |
Calculates the size necessary to serialize the JSON value j with its name.
Definition at line 14687 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_array_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_binary_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_entry_header_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_integer_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_object_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_string_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_unsigned_size(), nlohmann::detail::discarded, JSON_ASSERT, give::name, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, and nlohmann::detail::string.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_array_size().
|
inlinestaticprivate |
Definition at line 14483 of file json.hpp.
References nlohmann::detail::out_of_range::create(), JSON_HEDLEY_UNLIKELY, JSON_THROW, give::name, and nlohmann::to_string().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size().
|
inlinestaticprivate |
Definition at line 14560 of file json.hpp.
References say::max.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size().
|
inlinestaticprivate |
Calculates the size of the BSON serialization of the given JSON-object j.
[in] | value | JSON value to serialize |
Definition at line 14782 of file json.hpp.
References rotate-tower::result.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object().
|
inlinestaticprivate |
Definition at line 14530 of file json.hpp.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size().
|
inlinestaticconstexprprivatenoexcept |
Definition at line 14588 of file json.hpp.
References say::max.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_element_size().
|
inlinestaticconstexprprivate |
Definition at line 14818 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type().
|
inlinestaticconstexprprivate |
Definition at line 14813 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float().
|
inlinestaticconstexprprivate |
Definition at line 14832 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type().
|
inlinestaticconstexprprivate |
Definition at line 14827 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float().
|
inlinestaticconstexprprivate |
|
inlinestaticconstexprprivate |
Definition at line 15065 of file json.hpp.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::ubjson_prefix(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix().
|
inlinestaticconstexprnoexcept |
Definition at line 15170 of file json.hpp.
References diamondslots::x.
|
inlinestaticconstexprnoexcept |
Definition at line 15141 of file json.hpp.
References diamondslots::x.
Referenced by nlohmann::detail::serializer< BasicJsonType >::for(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_cbor_float_prefix(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_msgpack_float_prefix(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_boolean(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_cbor(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_msgpack(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_ubjson().
|
inlinestaticnoexcept |
Definition at line 15148 of file json.hpp.
References rotate-tower::result, autojail::value, and diamondslots::x.
|
inlinestaticconstexprnoexcept |
Definition at line 15159 of file json.hpp.
References diamondslots::x.
|
inlineprivatenoexcept |
determine the type prefix of container values
Definition at line 14984 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_ubjson_float_prefix(), say::max, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, and nlohmann::detail::string.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_ubjson().
|
inline |
[in] | j | JSON value to serialize |
Definition at line 13597 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::type_error::create(), nlohmann::detail::discarded, JSON_THROW, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, nlohmann::detail::string, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object().
Referenced by nlohmann::basic_json::to_bson().
|
inlineprivate |
Writes a BSON element with key name and array value.
Definition at line 14653 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_array_size(), give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::to_string(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and binary value value.
Definition at line 14672 of file json.hpp.
References give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and boolean value value.
Definition at line 14510 of file json.hpp.
References give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and double value value.
Definition at line 14520 of file json.hpp.
References give::name, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Serializes the JSON value j to BSON and associates it with the key name.
name | The name to associate with the JSON entity j within the current BSON document |
Definition at line 14735 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, JSON_ASSERT, give::name, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, nlohmann::detail::string, nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_binary(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_boolean(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_double(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_integer(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_null(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object_entry(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_string(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_unsigned().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object().
|
inlineprivate |
Writes the given element_type and name to the output adapter.
Definition at line 14498 of file json.hpp.
References give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_binary(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_boolean(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_double(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_integer(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_null(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object_entry(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_string(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_unsigned().
|
inlineprivate |
Writes a BSON element with key name and integer value.
Definition at line 14570 of file json.hpp.
References say::max, give::name, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and null value.
Definition at line 14552 of file json.hpp.
References give::name, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
[in] | value | JSON value to serialize |
Definition at line 14797 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_object_size(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object_entry().
|
inlineprivate |
Writes a BSON element with key name and object value.
Definition at line 14620 of file json.hpp.
References give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and string value value.
Definition at line 14538 of file json.hpp.
References give::name, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inlineprivate |
Writes a BSON element with key name and unsigned value.
Definition at line 14598 of file json.hpp.
References nlohmann::detail::out_of_range::create(), JSON_THROW, say::max, give::name, nlohmann::to_string(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_element().
|
inline |
[in] | j | JSON value to serialize |
Definition at line 13626 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::cbor, nlohmann::detail::discarded, say::max, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::object, nlohmann::detail::string, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
Referenced by nlohmann::basic_json::to_cbor().
|
inlineprivate |
Definition at line 15107 of file json.hpp.
References nlohmann::detail::cbor, nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_cbor_float_prefix(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_msgpack_float_prefix(), say::max, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_cbor(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_msgpack().
|
inline |
[in] | j | JSON value to serialize |
Definition at line 13950 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, say::max, nlohmann::detail::msgpack, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::object, nlohmann::detail::string, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
Referenced by nlohmann::basic_json::to_msgpack().
|
inlineprivate |
Definition at line 15091 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::is_little_endian, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_binary(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_cbor(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_msgpack(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix().
|
inlineprivate |
Definition at line 14844 of file json.hpp.
References nlohmann::detail::binary_writer< BasicJsonType, CharType >::get_ubjson_float_prefix(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_ubjson().
|
inlineprivate |
Definition at line 14857 of file json.hpp.
References say::max, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix().
|
inlineprivate |
Definition at line 14920 of file json.hpp.
References say::max, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix().
|
inline |
[in] | j | JSON value to serialize |
[in] | use_count | whether to use '#' prefixes (optimized format) |
[in] | use_type | whether to use '$' prefixes (optimized format) |
[in] | add_prefix | whether prefixes need to be used for this value |
Definition at line 14275 of file json.hpp.
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, JSON_ASSERT, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::binary_writer< BasicJsonType, CharType >::oa, nlohmann::detail::object, nlohmann::detail::string, nlohmann::detail::binary_writer< BasicJsonType, CharType >::to_char_type(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::ubjson_prefix(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix().
Referenced by nlohmann::basic_json::to_ubjson().
|
private |
whether we can assume little endianess
Definition at line 15177 of file json.hpp.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number().
|
private |
the output
Definition at line 15180 of file json.hpp.
Referenced by nlohmann::detail::binary_writer< BasicJsonType, CharType >::binary_writer(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_array(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_binary(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_boolean(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_entry_header(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_string(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_cbor(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_compact_float(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_msgpack(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number(), nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_number_with_ubjson_prefix(), and nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_ubjson().