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

Method Assign

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

Source from the content-addressed store, hash-verified

250}
251
252void VSTMessage::Assign(Message && src)
253{
254 VSTMessage& vstSrc = static_cast<VSTMessage&>(src);
255
256 mChunk = vstSrc.mChunk;
257 vstSrc.mChunk.resize(0); // capacity will be preserved though
258
259 assert(mParamsVec.size() == vstSrc.mParamsVec.size());
260
261 for (size_t i = 0; i < mParamsVec.size(); i++)
262 {
263 mParamsVec[i] = vstSrc.mParamsVec[i];
264
265 // consume the source value
266 vstSrc.mParamsVec[i] = std::nullopt;
267 }
268}
269
270void VSTMessage::Merge(Message && src)
271{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected