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

Method allocate

src/fl/stl/allocator.h:757–761  ·  view source on GitHub ↗

Allocate memory for n objects of type T

Source from the content-addressed store, hash-verified

755public:
756 // Allocate memory for n objects of type T
757 T* allocate(fl::size n) FL_NOEXCEPT {
758 // Use a static allocator instance per type/size combination
759 SlabAllocator<T, SLAB_SIZE>& allocator = get_allocator();
760 return allocator.allocate(n);
761 }
762
763 // Deallocate memory for n objects of type T
764 void deallocate(T* p, fl::size n) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected