|
Libsaki
Core library of Pancake Mahjong
|
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_cbor (const BasicJsonType &j) |
| [in] j JSON value to serialize | |
| void | write_msgpack (const BasicJsonType &j) |
| [in] j JSON value to serialize | |
| void | write_ubjson (const BasicJsonType &j, const bool use_count, const bool use_type, const bool add_prefix=true) |
serialization to CBOR and MessagePack values
|
inlineexplicit |
create a binary writer
| [in] | adapter | output adapter to write to |
|
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 |
1.8.13