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

Method element_ptr

src/fl/stl/basic_vector.h:167–169  ·  view source on GitHub ↗

Pointer to element at index (byte arithmetic).

Source from the content-addressed store, hash-verified

165
166 /// Pointer to element at index (byte arithmetic).
167 void* element_ptr(fl::size index) FL_NOEXCEPT {
168 return static_cast<char*>(mArray) + index * mElementSize;
169 }
170 const void* element_ptr(fl::size index) const FL_NOEXCEPT {
171 return static_cast<const char*>(mArray) + index * mElementSize;
172 }

Callers 2

swap_implMethod · 0.80
copy_fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected