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

◆ StringHolder() [3/4]

fl::StringHolder::StringHolder ( const char * str,
size length )

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

50 : mData((char*)fl::malloc(length + 1))
52 , mCapacity(length + 1) {
53 if (mData == nullptr) {
54 mLength = 0;
55 mCapacity = 0;
56 return;
57 }
59 mData[mLength] = '\0';
60}
size length() const FL_NO_EXCEPT
void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

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

+ Here is the call graph for this function: