WPILibC++  unspecified
wpi::json::binary_writer Class Reference

serialization to CBOR and MessagePack values More...

Public Member Functions

 binary_writer (raw_ostream &s)
 create a binary writer More...
 
void write_cbor (const json &j)
 [in] j JSON value to serialize
 
void write_msgpack (const json &j)
 [in] j JSON value to serialize
 
void write_ubjson (const json &j, const bool use_count, const bool use_type, const bool add_prefix=true)
 

Detailed Description

serialization to CBOR and MessagePack values

Constructor & Destructor Documentation

wpi::json::binary_writer::binary_writer ( raw_ostream s)
inlineexplicit

create a binary writer

Parameters
[in]adapteroutput adapter to write to

Member Function Documentation

void wpi::json::binary_writer::write_ubjson ( const json j,
const bool  use_count,
const bool  use_type,
const bool  add_prefix = true 
)
Parameters
[in]jJSON value to serialize
[in]use_countwhether to use '#' prefixes (optimized format)
[in]use_typewhether to use '$' prefixes (optimized format)
[in]add_prefixwhether prefixes need to be used for this value

The documentation for this class was generated from the following file: