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

◆ memory() [2/2]

template<typename T, fl::size N>
const T * fl::InlinedMemoryBlock< T, N >::memory ( ) const
inline

Definition at line 59 of file vector.h.

59 {
60 const MemoryType *begin = &mMemoryBlock[0];
61 const fl::uptr shift_up =
62 reinterpret_cast<fl::uptr>(begin) & (sizeof(MemoryType) - 1);
63 const MemoryType *raw = begin + shift_up;
64 return reinterpret_cast<const T *>(raw);
65 }
fl::uptr MemoryType
Definition vector.h:26
MemoryType mMemoryBlock[kBlockSize]
Definition vector.h:49

References fl::begin(), and mMemoryBlock.

+ Here is the call graph for this function: