Gin
Static Public Member Functions | List of all members
MessagePack Class Reference

Converts to/from MessagePack and juce::var. More...

Static Public Member Functions

static juce::MemoryBlock toMessagePack (const juce::var &obj)
 
static juce::var parse (const juce::MemoryBlock &data)
 

Detailed Description

Converts to/from MessagePack and juce::var.

Due to limitations of juce:var, there are no unsigned ints, object keys can only be strings (non strings will be converted to string if possible)

All custom types will be returned as juce::MemoryBlock with the first byte as the type.

All strings are assumed to be utf8

Member Function Documentation

◆ toMessagePack()

static juce::MemoryBlock MessagePack::toMessagePack ( const juce::var &  obj)
static

◆ parse()

static juce::var MessagePack::parse ( const juce::MemoryBlock &  data)
static

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