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

◆ memory() [2/2]

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

Definition at line 52 of file vector.h.

52 {
53 const MemoryType *begin = &mMemoryBlock[0];
54 const uintptr_t shift_up =
55 reinterpret_cast<uintptr_t>(begin) & (sizeof(MemoryType) - 1);
56 const MemoryType *raw = begin + shift_up;
57 return reinterpret_cast<const T *>(raw);
58 }
uintptr_t MemoryType
Definition vector.h:20
MemoryType mMemoryBlock[kBlockSize]
Definition vector.h:42

References mMemoryBlock.