MIRA
Functions
mira::BinaryJSONConverter Namespace Reference

Functions

MIRA_BASE_EXPORT uint8 binaryToJSON (const Buffer< uint8 > &data, bool containsTypename, const TypeMeta &type, const MetaTypeDatabase &metadb, JSONValue &oObject)
 
MIRA_BASE_EXPORT void JSONToBinary (const JSONValue &iObject, const TypeMeta &type, const MetaTypeDatabase &metadb, Buffer< uint8 > &oData, bool includeTypename, int defaultVersion=-1)
 
MIRA_BASE_EXPORT void JSONToBinaryV1 (const JSONValue &iObject, const TypeMeta &type, const MetaTypeDatabase &metadb, Buffer< uint8 > &oData, bool includeTypename, int defaultVersion=-1)
 

Function Documentation

◆ binaryToJSON()

MIRA_BASE_EXPORT uint8 mira::BinaryJSONConverter::binaryToJSON ( const Buffer< uint8 > &  data,
bool  containsTypename,
const TypeMeta type,
const MetaTypeDatabase metadb,
JSONValue oObject 
)

◆ JSONToBinary()

MIRA_BASE_EXPORT void mira::BinaryJSONConverter::JSONToBinary ( const JSONValue iObject,
const TypeMeta type,
const MetaTypeDatabase metadb,
Buffer< uint8 > &  oData,
bool  includeTypename,
int  defaultVersion = -1 
)

◆ JSONToBinaryV1()

MIRA_BASE_EXPORT void mira::BinaryJSONConverter::JSONToBinaryV1 ( const JSONValue iObject,
const TypeMeta type,
const MetaTypeDatabase metadb,
Buffer< uint8 > &  oData,
bool  includeTypename,
int  defaultVersion = -1 
)