Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FastLED/FastLED
/ allocate
Method
allocate
tests/fl/stl/move.cpp:592–595 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
590
}
591
592
T* allocate(fl::size n) {
593
if (n == 0) return nullptr;
594
return static_cast<T*>(fl::Malloc(n * sizeof(T)));
595
}
596
597
void deallocate(T* p, fl::size n) {
598
if (p) {
Callers
1
FL_TEST_FILE
Function · 0.45
Calls
1
Malloc
Function · 0.85
Tested by
no test coverage detected