MCPcopy Create free account
hub / github.com/DBraun/DawDreamer / copyFrom

Method copyFrom

JuceLibraryCode/modules/juce_core/memory/juce_MemoryBlock.cpp:224–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void MemoryBlock::copyFrom (const void* const src, int offset, size_t num) noexcept
225{
226 auto* d = static_cast<const char*> (src);
227
228 if (offset < 0)
229 {
230 d -= offset;
231 num += (size_t) -offset;
232 offset = 0;
233 }
234
235 if ((size_t) offset + num > size)
236 num = size - (size_t) offset;
237
238 if (num > 0)
239 memcpy (data + offset, d, num);
240}
241
242void MemoryBlock::copyTo (void* const dst, int offset, size_t num) const noexcept
243{

Callers 15

processBlockMethod · 0.45
setBPMwithPPQNMethod · 0.45
PlaybackProcessorMethod · 0.45
processBlockMethod · 0.45
setDataMethod · 0.45
PlaybackWarpProcessorMethod · 0.45
processBlockMethod · 0.45
setDataMethod · 0.45
runTestMethod · 0.45
copyingTestsMethod · 0.45
processSamplesMethod · 0.45

Calls

no outgoing calls

Tested by 4

runTestMethod · 0.36
copyingTestsMethod · 0.36
testConvolutionMethod · 0.36
runTestMethod · 0.36