FastLED 3.10.8
Loading...
Searching...
No Matches

◆ StringHolder() [2/4]

fl::StringHolder::StringHolder ( size length)

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

38 : mData((char*)fl::malloc(length + 1))
40 , mCapacity(length + 1) {
41 if (mData == nullptr) {
42 mLength = 0;
43 mCapacity = 0;
44 return;
45 }
46 mData[mLength] = '\0';
47}
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: