FastLED 3.10.10
Loading...
Searching...
No Matches

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( size length)

Definition at line 55 of file string_holder.cpp.hpp.

56 : mData((char*)fl::malloc(length + 1))
58 , mCapacity(length + 1) {
59 if (mData == nullptr) {
60 mLength = 0;
61 mCapacity = 0;
62 return;
63 }
64 mData[mLength] = '\0';
65}
size length() const FL_NO_EXCEPT
FASTLED_FORCE_INLINE void * malloc(size_t size) FL_NO_EXCEPT
Definition malloc.h:21

References fl::FL_NO_EXCEPT, length(), fl::malloc(), mCapacity, mData, and mLength.

+ Here is the call graph for this function: