FastLED 3.10.8
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 274 of file allocator.cpp.hpp.

274 {
275 auto& s = slab_registry_state();
276 for (int i = 0; i < s.count; i++) {
277 if (s.entries[i].block_size == block_size &&
278 s.entries[i].slab_size == slab_size) {
279 return s.entries[i].allocator;
280 }
281 }
282 return nullptr;
283}

References fl::FL_NO_EXCEPT.

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

+ Here is the caller graph for this function: