serialization to CBOR and MessagePack values
More...
#include <binary_writer.hpp>
template<typename BasicJsonType, typename CharType>
class nlohmann::detail::binary_writer< BasicJsonType, CharType >
serialization to CBOR and MessagePack values
◆ binary_writer()
template<typename BasicJsonType , typename CharType >
create a binary writer
- Parameters
-
[in] | adapter | output adapter to write to |
◆ write_ubjson()
template<typename BasicJsonType , typename CharType >
void nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_ubjson |
( |
const BasicJsonType & |
j, |
|
|
const bool |
use_count, |
|
|
const bool |
use_type, |
|
|
const bool |
add_prefix = true |
|
) |
| |
|
inline |
- Parameters
-
[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 |
The documentation for this class was generated from the following file: