FastLED 3.9.15
Loading...
Searching...
No Matches

◆ slab_allocator_registry_get()

void * fl::detail::slab_allocator_registry_get ( fl::size block_size,
fl::size slab_size )

Definition at line 256 of file allocator.cpp.hpp.

256 {
257 for (int i = 0; i < slab_registry_count; i++) {
258 if (slab_registry[i].block_size == block_size &&
259 slab_registry[i].slab_size == slab_size) {
260 return slab_registry[i].allocator;
261 }
262 }
263 return nullptr;
264}

References fl::detail::anonymous_namespace{allocator.cpp.hpp}::SlabRegistryEntry::allocator.

Referenced by fl::allocator_slab< T, SLAB_SIZE >::get_allocator().

+ Here is the caller graph for this function: