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

◆ clear()

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
void fl::StrN< SIZE >::clear ( bool freeMemory = false)
inline

Definition at line 398 of file str.h.

398 {
399 mLength = 0;
400 if (freeMemory && mHeapData) {
401 mHeapData.reset();
402 }
403 }
StringHolderPtr mHeapData
Definition str.h:142
fl::size mLength
Definition str.h:140

References mHeapData, and mLength.

Referenced by fl::istream::getline(), fl::istream_real::getline(), fl::istream::operator>>(), and fl::istream_real::readToken().

+ Here is the caller graph for this function: