MCPcopy Create free account
hub / github.com/FastLED/FastLED / release

Method release

src/fl/audio/fft/fft.cpp.hpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 void release(fl::vector<float>&& v) {
36 if (v.capacity() > 0 && mPool.size() < kMaxPoolSize) {
37 v.clear();
38 mPool.push_back(fl::move(v));
39 }
40 }
41
42 void releaseIfNotEmpty(fl::vector<float>&& v) {
43 if (!v.empty()) {

Callers

nothing calls this directly

Calls 4

capacityMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected