| 338 | } |
| 339 | |
| 340 | void PluginProcessor::getStateInformation(juce::MemoryBlock& dest_data) { |
| 341 | auto temp_tree = juce::ValueTree("ZLCompressorParaState"); |
| 342 | temp_tree.appendChild(parameters_.copyState(), nullptr); |
| 343 | temp_tree.appendChild(parameters_NA_.copyState(), nullptr); |
| 344 | const std::unique_ptr<juce::XmlElement> xml(temp_tree.createXml()); |
| 345 | copyXmlToBinary(*xml, dest_data); |
| 346 | } |
| 347 | |
| 348 | void PluginProcessor::setStateInformation(const void* data, const int size_in_bytes) { |
| 349 | std::unique_ptr<juce::XmlElement> xml_state(getXmlFromBinary(data, size_in_bytes)); |
nothing calls this directly
no outgoing calls
no test coverage detected