Serialization of objects using InterprocessConnection


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?


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

Thanks Jules