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

serialization to CBOR and MessagePack values More...

Public Member Functions

 binary_writer (llvm::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
 

Static Public Member Functions

static bool little_endianess () noexcept
 determine system byte order More...
 

Detailed Description

serialization to CBOR and MessagePack values

Constructor & Destructor Documentation

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

create a binary writer

Parameters
[in]adapteroutput adapter to write to

Member Function Documentation

static bool wpi::json::binary_writer::little_endianess ( )
inlinestaticnoexcept

determine system byte order

Returns
true iff system's byte order is little endian
Note
from http://stackoverflow.com/a/1001328/266378

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