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

◆ StringHolder() [1/4]

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

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

17 : mData((char*)fl::malloc(strlen(str) + 1))
18 , mLength(strlen(str))
19 , mCapacity(mLength + 1) {
21 mData[mLength] = '\0';
22}
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
size_t strlen(const char *s) FL_NOEXCEPT
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: