MCPcopy Create free account
hub / github.com/audacity/audacity / HandleXMLEndTag

Method HandleXMLEndTag

libraries/lib-vst/VSTWrapper.cpp:1620–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618}
1619
1620void VSTWrapper::HandleXMLEndTag(const std::string_view& tag)
1621{
1622 if (tag == "chunk")
1623 {
1624 if (mChunk.length())
1625 {
1626 ArrayOf<char> buf{ mChunk.length() / 4 * 3 };
1627
1628 int len = Base64::Decode(mChunk, buf.get());
1629 if (len)
1630 {
1631 callSetChunk(true, len, buf.get(), &mXMLInfo);
1632 }
1633
1634 mChunk.clear();
1635 }
1636 mInChunk = false;
1637 }
1638
1639 if (tag == "program")
1640 {
1641 if (mInSet)
1642 {
1643 callDispatcher(effEndSetProgram, 0, 0, NULL, 0.0);
1644
1645 mInSet = false;
1646 }
1647 }
1648}
1649
1650void VSTWrapper::HandleXMLContent(const std::string_view& content)
1651{

Callers 1

EndTagMethod · 0.45

Calls 3

lengthMethod · 0.45
getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected