MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / getStateInformation

Method getStateInformation

source/PluginProcessor.cpp:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void 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
348void PluginProcessor::setStateInformation(const void* data, const int size_in_bytes) {
349 std::unique_ptr<juce::XmlElement> xml_state(getXmlFromBinary(data, size_in_bytes));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected