MCPcopy Create free account
hub / github.com/LabSound/LabSound / zeroRange

Method zeroRange

include/LabSound/core/AudioArray.h:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void zeroRange(unsigned start, unsigned end)
76 {
77 bool isSafe = (start <= end) && (end <= (unsigned) size());
78 if (!isSafe)
79 return;
80
81 memset(data() + start, 0, sizeof(T) * (end - start));
82 }
83
84 void copyToRange(const T * sourceData, unsigned start, unsigned end)
85 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected