Serialization of objects using InterprocessConnection


#1

Hi.

I need to pass structures between processes using pips.
What is the best way in Juce to do it?

I saw that XmlDocument can use an InputSource so maybe using that…
I can write serialize()/desirialize () methods for my struct that utilize something like MemoryBlock::getNextInt() , MemoryBlock::putNextString()…

Isn’t any better way?

Thanks.


#2

The fastest and most compact way would be with ValueTree::writeToStream()


#3

Thanks Jules