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

Method do_allocate

src/fl/stl/memory_resource.cpp.hpp:54–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52class PSRamMemoryResource : public memory_resource {
53 protected:
54 void* do_allocate(fl::size bytes) override {
55 return fl::PSRamAllocate(bytes, true); // zero-initialized
56 }
57
58 void do_deallocate(void* p, fl::size bytes) override {
59 FASTLED_UNUSED(bytes);

Callers

nothing calls this directly

Calls 1

PSRamAllocateFunction · 0.85

Tested by

no test coverage detected