FastLED 3.10.6
Loading...
Searching...
No Matches

◆ StringHolder() [1/4]

fl::StringHolder::StringHolder ( const char * str)

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

25 : mData((char*)fl::malloc(strlen(str) + 1))
26 , mLength(strlen(str))
27 , mCapacity(mLength + 1) {
28 if (mData == nullptr) {
29 mLength = 0;
30 mCapacity = 0;
31 return;
32 }
34 mData[mLength] = '\0';
35}
void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT
size_t strlen(const char *s) FL_NO_EXCEPT
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References fl::malloc(), mCapacity, mData, fl::memcpy(), mLength, and fl::strlen().

Referenced by StringHolder(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: